Once your gateway is all setup, let’s receive and send LoRaWAN messages! You need a LoRa capable device, such as WaziDev. With WaziDev, you need to install the WaziDev sketchbook, as instructed here.
In Arduino IDE, select the LoRaWAN/actuation sketch:
The sketch looks like that:
This sketch has 3 keys: devAddr, appSkey, netSkey. They need to be copied in the WaziGate to be recognized. You can flash this sketch on your device.
Once flashed, open the WaziGate UI on http://wazigate.local and first select the “Dashboard” menu entry. Click on the “Plus” icon at the bottom right:
Enter a device name of your choice:
Once your device is created, click on it to enter that device. We now need to tell WaziGate that this device is LoRaWAN-able. Then click on the “three dots” at the top right of the screen, and select “Make LoRaWAN”.
Once the device is converted, fill in the three keys, so they are identical with the keys in you sketch. Once the keys filled in, save.
You need to make 100% sure that the keys are equal. In particular, make sure that appSkey and nwkSkey are not swapped.
Please also make sure that the devAddr is unique, i.e. you don’t have two devices with the same devAddr.
Go back to the “Dashboard” main page.
If you device sketch is running, you should already see the value there! Congratulations!
Let’s now open the Cloud dashboard and look for you device. In the “Devices” menu entry, search for you device using the filters.
Here it is! Double congratulations! Next steps:
Actuation with WaziGate is very easy. On the WaziDev side, we can keep the same sketch.
First, come back on the device that wen added, click on the bottom right “plus” sign and click on “add actuator”:
Select a name for your new actuator:
Your actuator is added, it has no value yet:
Let’s go back on the Cloud dashboard. Your actuator should already be there!
Click in and click on the “edit” symbol (a back pen):
Select an actuation type:
Coming back, you can see that the widget for the actuation trigger has changed based on the type that you selected:
For instance here, we selected a “boolean” type, so a switch with two places appeared (true or false). Go on and trigger it. You just did an actuation! Let’s check it.
Come back on the WaziGate UI. Your actuation value came back at the WaziGate:
Finally, let’s check your device. Go back to Arduino IDE and open the serial monitor. Your actuation is there! That was quite a ride.
It is now up to you to really make some actuation by reading this value in your code and, for example, ring a buzzer.