• arduino > node > react ???
    4 replies, posted
I have an arduino device with a wifi module that allows me to connect to wifi but I don't know where to get started when it comes to sending sensor data to a node server. I'm just sending numerical values that I want to be able to use with react native but I don't know if what I'm saying is right at all. It's something I'll need to learn on my own in pieces but this is for a project due really soon and I need to hack something together to demo. Can you guys point me in the right direction? I want my arduino to send integers to a node server and then to be able to use that in react?? can i skip the node step altogether?
If you don't fancy using node to connect your data and view layers, I think the only way would be having a program that constantly writes the data to files and then you view layer reads on those files. Not sure if react native can read files.
I found a really backwoods method of sending arduino data to a google spreadsheet using ifttt but I want to move as far away from that as possible. I don't mind node, I just didn't know if that was even related to what I wanted to do.
Typically with low-power (both energy and performance) devices like anything running the Arduino platform, you exfiltrate the data via either HTTP or MQTT. You didn't state what Android device you've got, but the HttpClient library well supported/people emulate its API. https://github.com/arduino-libraries/ArduinoHttpClient You'll then need something on the React side, that you can connect to. https://stackoverflow.com/questions/39515359/how-to-open-a-http-server-in-react-native
thank you, a friend suggested i should use firebase and flutter so I've been doing that at the moment and struggling a bit to install packages but I think it's working.
Sorry, you need to Log In to post a reply to this thread.