Sample plug-and-play Netduino V2/V3 client for my LoRa field gateway projects (see my profile for these). The design goal was a simple demo solution that students could use as a basis for their indoor environmental monitoring projects.
The Netduino client uses:
- Arduino LoRa shield (Dragino, Elecrow, MakerFabs tested)
- SeeedStudio Grove-Temperature & Humidity Sensor
- SeeedStudio Grove-Universal 4 Pin Buckled 5cm Cable
- SeeedStudio Grove-Base Shield V2
Download the code, then build and deploy to your Netduino device.
Ensure the case of your sensor identifiers is consistent with the IoT Cloud Service configuration.
Ensure the FieldGatewayAddress, Frequency and FieldGatewaySyncWord match the configuration of your field gateway.
For devices without network connectivity (Netduino2/Netduino3) you will need to comment out/remove the MAC address lookup code and configure a unique
// Setup the device unique identifier, in this case the hardware
MacAddressdeviceIdentifier = NetworkInterface.GetAllNetworkInterfaces()[0].PhysicalAddress;
Debug.Print(" Device Identifier : " + BytesToHexString(deviceIdentifier));
Comments
Please log in or sign up to comment.