Get/write Data form IoT Plattform with http or mqtt

331 views
Skip to first unread message

yin619...@gmail.com

unread,
Oct 1, 2017, 10:53:36 AM10/1/17
to MIT App Inventor Forum
Hello eveyone,

i want to make a app to control device. The devices are connected with iot plattform ubidots now. The IoT Plattform ubidots support the http, mqtt api to access variable. So t want to ask, the App Inventor can use http or mqtt to communicate with iot plattform? I hope you guys quickly to give me answer if you know this. Thank you in advance.

Regards
Fei Yin

Abraham Getzler

unread,
Oct 1, 2017, 3:11:55 PM10/1/17
to MIT App Inventor Forum
The http API looks doable using the Web component.

See the Web Services section of this FAQ for many examples ...


ABG

gerrikoio

unread,
Oct 1, 2017, 4:06:54 PM10/1/17
to mitappinv...@googlegroups.com
As @ABG suggests, http is your best bet.

Yes, not sure why no extension for MQTT as yet (maybe in the pipeline - but nothing visible), as this should be readily achievable, especially as there are already App Inventor blocks available to handle Firebase and BLE notification functions (need something similar to handle the MQTT subscription side). Otherwise, would have to rely on clock timers and that's messy and prone to the occasional crash.


Taifun

unread,
Oct 2, 2017, 10:33:46 AM10/2/17
to MIT App Inventor Forum
 not sure why no extension for MQTT as yet (maybe in the pipeline - but nothing visible)
see also my extensions directory here https://puravidaapps.com/extensions.php

Taifun

gerrikoio

unread,
Oct 2, 2017, 11:21:13 AM10/2/17
to MIT App Inventor Forum
Thanks for the correction @Tailfun. I did not realise there was an MQTT extension. Will check it out.

yin619...@gmail.com

unread,
Oct 5, 2017, 3:05:16 PM10/5/17
to MIT App Inventor Forum
Hello, thank you for your answer @Taifun. But why not have the MQTT TCP/IP aix file to dowmload.

Taifun

unread,
Oct 6, 2017, 5:51:52 PM10/6/17
to MIT App Inventor Forum
But why not have the MQTT TCP/IP aix file to dowmload.
well, probably because it's a paid extension?
Taifun
Reply all
Reply to author
Forward
0 new messages