Is websocket the least memory-intensive approach to moving JSON data from Arduino Uno to Bluemix?

I really need some help. Nothing is broken, you just need to be guided. I have an Arduino Uno and AdaFruit CC3300 Wifi Shield. I built a well-functioning solar-powered weather station and saturated all the analog and digital io. Everything works well with the IDE, my wifi code example works fine. I use IBM Bluemix and have learned a lot, although I have not done anything in the past. I am a computer engineer who throughout my career has been running some kind of software and mostly embedded hardware.

Unfortunately, I simply did not have enough space for the MQTT client to work on Uno, despite the great optimization. A lot of good advice on this and Bluemix itself, but I can't use it.

Here are my questions;

  • I think the web socket is my best game to keep everything in order. ----- It is right? ---- I need, in fact, to transmit a JSON string of about 300 characters (all sensor data, etc.) in just 5 minutes. It. I just can't figure out how to do this before a Bluemix application using Node Red (also learning JavaScript). There is also a Node web socket. It is not explained anywhere that I can find at least something that a mortal man can understand. I also run a webclient sample for this wifi library, but cannot complete the jump. Just not wise there.

  • I believe that the AdidFruit CC3300 Wifi shield library can configure the client side web socket so that there is no additional load on the space. ---- It is right? -----

  • My goal is to simply get this formatted JSON data before my Bluemix application and display the Node Red debug in the console. I am fully configured on Bluemix.

Evaluate any guidance to steer me in the right direction. dpguitarman

+4
source share
2 answers

Instead of moving to the need to update the protocol to get a connection to WebSocket, why not just run the simple HTTP POST protocol?

+2
source

, websocket , arduino node/Bluemix . Arduino https://github.com/billroy/socket.io-arduino-client , websocket. Bluemix, nodejs , JavaScript , arduino Json

+1

Source: https://habr.com/ru/post/1624878/


All Articles