Hello,
I am running the Gateway server on a Raspberry PI 3. I have a Moteino attached to the USB port of a Raspberry PI running the rf95_server sketch. Another remote Moteino equipped with a Weathershield is running a modified version of the rf95_client sketch. Data is being received by the server, but the Weathershield does not show up as a Node on the Gateway. How are the Nodes assigned? Do I need to define values for GATEWAYID, NODEID, or NETWORKID in both server and client sketches?
I have "genNodeifnomatch" set to TRUE in my settings. The log does show data being received by the server (which is attached to the Raspberry PI).
Thank you! -Bob
How
The gateway software expects properly formatted serial messages from your Moteino/MightyHat or whatever else MCU+radio you use.
Format is like this:
[id] data
where id is the node id, and data is space separated tokens. The tokens are defined in metrics.js, or you can define your own in separate userMetrics.js files, example is given in the userMetrics (https://github.com/LowPowerLab/raspberrypi-gateway) folder.
For the weather shield, you have to send recognized metrics like: F:75.30 H:60 etc.
See metrics.js (https://github.com/LowPowerLab/RaspberryPi-Gateway/blob/master/metrics.js) for more.
Thank you Felix. This is very useful information!
-Bob
r.rabin
I have a similar setup. Did you get it working? If so what serial port/baud rate did you use in the gateway settings?
Also can you share your code for the client and server sketches?
Thanks!
Ken
FWIW : the defaults are 19200 baud both in the PiGateway sketch (https://github.com/LowPowerLab/RFM69/blob/master/Examples/PiGateway/PiGateway.ino), and in the Gateway settings file (https://github.com/LowPowerLab/RaspberryPi-Gateway/blob/master/settings.json5).