moto - orchestrating iot for business users and connecting it to yaas
TRANSCRIPT
Moto - Orchestrating IoT for business users
and connecting it to YaaSLars Gregori, @choas
Hybris Labs
Smart Wine Shelf
https://labs.hybris.com/prototype/smart-wine-shelf/
Funky Retailhttps://labs.hybris.com/prototype/funky-retail/
Motohttps://labs.hybris.com/
prototype/moto/
AgendaBLE and MQTT
YaaS Node-RED
Android: BLE and MQTTimport org.eclipse.paho.client.mqttv3.MqttClient; public int onStartCommand(…) { this.mqttClient = new MqttClient("tcp://"+MQTT_SERVER, ”moto”, …); this.bleReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) {
Boolean present = intent.getBooleanExtra(MotoBluetoothDevice.EXTRA_PRESENT, false);jsonObj.put("present", present);
mqttMsg.setPayload(jsonObj.toString().getBytes()); this.mqttClient.getTopic(MQTT_TOPIC).publish(mqttMsg); }}; }
Arduino Code
YaaSSAP Hybris as a Service
Node-REDorchestrating IoT
Thank you
Links and Credits• yaas.io
• labs.hybris.com
• nodered.org
• http://www.thingiverse.com/thing:351119