The normal setup involves 3 pieces:
- The sensor (aka node) emitting data via RF using something like a NRF24L01
- A gateway that receives the sensor data via the RF module (NRF24L01) and sends it to a controller over ethernet or wifi.
- A controller to manage connected nodes and present data to the user.
It seems like you're combining the sensor and gateway into one device. If this is the case, I think you can comment out the
#define MY_RADIO_RFM69 line as there is no radio connected. I don't know how this plays into the registration process of a sensor. There is no ID getting associated to the sensor because this is a gateway.
Maybe someone else can chime in who knows whether it's okay to combine the gateway and sensor into one device. If so, how is registration and ID assignment handled?
Post a updated version of your sketch.