Brad Active Member Licensed User Longtime User Nov 28, 2016 #1 I was wondering if someone has already wrapped the below library or if someone could. My project requires uploading sensor data to a MySQL db. I looked at using MQTT but it seemed a little convoluted and from I could determine, MQTT doesn't give me the ability to know if the data was successfully uploaded. Here's the link to the library https://github.com/esp8266/Arduino/tree/master/libraries/ESP8266HTTPClient
I was wondering if someone has already wrapped the below library or if someone could. My project requires uploading sensor data to a MySQL db. I looked at using MQTT but it seemed a little convoluted and from I could determine, MQTT doesn't give me the ability to know if the data was successfully uploaded. Here's the link to the library https://github.com/esp8266/Arduino/tree/master/libraries/ESP8266HTTPClient
Erel B4X founder Staff member Licensed User Longtime User Nov 29, 2016 #2 Everything you need is already available here: https://www.b4x.com/android/forum/threads/rdc-based-on-mqtt.72416/#content MQTT is less convoluted and more lightweight than HTTP. Brad said: MQTT doesn't give me the ability to know if the data was successfully uploaded. Click to expand... Check the link above.
Everything you need is already available here: https://www.b4x.com/android/forum/threads/rdc-based-on-mqtt.72416/#content MQTT is less convoluted and more lightweight than HTTP. Brad said: MQTT doesn't give me the ability to know if the data was successfully uploaded. Click to expand... Check the link above.
Brad Active Member Licensed User Longtime User Nov 29, 2016 #3 Erel, I did see that thread but it won't work for my project. My company is developing a product for a customer that will have hundreds of thousands of modules at numerous locations transmitting sensor data so I plan on using Amazon RDS. We are currently in testing and each sensor transmits data to a local computer which then it uploads to a DB. For scaling purposes(and cost) I'm switching to the 8266 and having each one upload to the DB. I would like to use AWS IoT service but from what I could find the 8266 isn't able to use the service.
Erel, I did see that thread but it won't work for my project. My company is developing a product for a customer that will have hundreds of thousands of modules at numerous locations transmitting sensor data so I plan on using Amazon RDS. We are currently in testing and each sensor transmits data to a local computer which then it uploads to a DB. For scaling purposes(and cost) I'm switching to the 8266 and having each one upload to the DB. I would like to use AWS IoT service but from what I could find the 8266 isn't able to use the service.
Erel B4X founder Staff member Licensed User Longtime User Nov 30, 2016 #4 Example of sending http requests: https://www.b4x.com/android/forum/t...ons-to-ios-and-android-devices.71507/#content
Example of sending http requests: https://www.b4x.com/android/forum/t...ons-to-ios-and-android-devices.71507/#content
Brad Active Member Licensed User Longtime User Dec 7, 2016 #5 From what I can determine AsyncStreams doesn't return results of the post request.
Erel B4X founder Staff member Licensed User Longtime User Dec 8, 2016 #6 AsyncStreams returns everything that it receives. Maybe you are closing it too early.