0
votes

I am new bee to NodeRED. I refer tutorial on NodeRED connecting devices such as raspberry PI. The partial documentation on NodeRED Website is available that states that how developers can reads sensors connected to GPIO pins on Raspberry PI.

Similar way, I would like to know - how can I read sensors (e.g., proximity sensors, GPS, Accelerometer) on Android device with NodeRED? More specifically, I would like to play with Android device sensors with NodeRED? I have tried to google documentations related to it, but did not find it.

2

2 Answers

1
votes

You will need to write an Android app to expose the sensors in a way that can be ingested into Node-RED, I would suggest publishing the values to a MQTT broker.

Node-RED can then subscribe to the topics and process the sensor values.

0
votes
  1. write an android app, that will expose the android sensor.

  2. either push the data from Android to MQTT server (best choice) or use a microservice like AWS lamda or Firebase .

  3. if used pub-sub with MQTT call it on Node-red, or call Lamda function Api endpoint on node-red or call the firebase directly on Node-red,

  4. choose wisely according to your requirements.