REST API

The communication between server and client is managed with rest http. When you want invoke a specific method you can use : see also In Your Application Delegate. Demo code My_Bees_Core *my_bees = [[My_Bees_Core alloc] init]; NSString *method=@"/getMyprofile"; [my_bees send:method success:^(id responseObject){ NSLog(@"response: %@", responseObject); } failure:^(NSError * error){ NSLog(@"error: %@", error); }]; You can [...]

REST API.

The communication between server and client is managed with rest http. When you want invoke a specific method you can use : see also Create your Activity. Demo code @Override public void onConnectionSuccess() { myBeesClientAndroid.registerListener(this); myBeesClientAndroid.setPosition(false,false); action=myBeesClientAndroid.getAction(); JSONObject obj = new JSONObject(); action.send("/your_method", JSONObject parameters_connection, new AsyncActuators() { @Override public void OnResponseSuccess(JSONObject response) { } [...]

Creating your Activity

This is how you must implement your activity, after connection you can send command or get information from microbees system. Demo code public class MainActivity extends AppCompatActivity implements MyBeesClientAndroid.OnConnection { MyBeesClientAndroid myBeesClientAndroid =null; MyBeesAction action=null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); myBeesClientAndroid =new MyBeesClientAndroid(this); myBeesClientAndroid.addConnectionCallbacks(this); myBeesClientAndroid.connect(); } @Override protected void onDestroy() { super.onDestroy(); [...]

gateBee API

Il gateBee espone diverse API attraverso vari canali: - REST API: Con Application Programming Interface (in acronimo API, in italiano Interfaccia di Programmazione di un'Applicazione), si indica ogni insieme di procedure disponibili allo sviluppatore. Attraverso le API è possibile reperire l'elenco delle bee connesse, la configurazione locale e lo stato degli attuatori dei bee... - MQTT: [...]