Ethernet Gateway - How to get sensor data?



  • I am just getting my feet wet with mysensors and wanted to clarify how a controller gets data from the ethernet gateway.

    Looking at the code, the data gets dumped to the ethernet connection in the writeEthernet method, I assume I need to connect somehow via sockets to get this data?

    Does anyone know if there is any example code for reading this data into a controller (any language would be great as I am struggling to find anything on this)?

    Out of curiosity is there a reason for doing it like this rather than pushing the data to the controller via a rest request or something?

    Thanks for any help - everything else has been really straight forward so far


Log in to reply
 

Suggested Topics

  • 11
  • 4
  • 3
  • 2
  • 5
  • 8
  • 1
  • 2

271
Online

9.1k
Users

9.8k
Topics

101.9k
Posts