You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`const char *appEui`: Application EUI the device is registered to.
103
103
-`const char *appKey`: Application Key assigned to the device.
104
104
-`int8_t retries = -1`: Number of times to retry after failed or unconfirmed join. Defaults to `-1` which means infinite.
105
105
-`uint32_t retryDelay = 10000`: Delay in ms between attempts. Defaults to 10 seconds.
106
+
-`lorawan_class = CLASS_A`: The LoRaWAN class to use for downlink message reception.
106
107
107
108
Returns `true` or `false` depending on whether it received confirmation that the activation was successful before the maximum number of attempts.
108
109
@@ -127,6 +128,22 @@ Call the method with no arguments if the device's LoRa module comes with pre-fla
127
128
128
129
See the [SendABP](https://github.com/TheThingsNetwork/arduino-device-lib/blob/master/examples/SendABP/SendABP.ino) example.
129
130
131
+
## Method: `setClass`
132
+
133
+
Change the downlink receive LoRaWAN Class. Class C is only supported in firmware version 1.0.5 and up. For other firmware versions this method will have no effect.
134
+
135
+
```c
136
+
bool setClass(lorawan_class p_lw_class);
137
+
```
138
+
139
+
-`lorawan_class p_lw_class`: The LoRaWAN class. Either `CLASS_A` or `CLASS_C`.
140
+
141
+
Returns `true` if the change was successful, or `false` if not successful.
142
+
143
+
The receive window only opens after a transmit. Therefore Class C receive will only start after calling `sendBytes()`.
144
+
145
+
See the [ReceiveClassC](https://github.com/TheThingsNetwork/arduino-device-lib/blob/master/examples/ReceiveClassC/ReceiveClassC.ino) example.
146
+
130
147
## Method: `sendBytes`
131
148
132
149
Send a message to the application using raw bytes.
0 commit comments