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
Copy file name to clipboardExpand all lines: README.md
+53-11Lines changed: 53 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,17 +48,22 @@ It targets devices that are reasonably capabile, consisting of:
48
48
The reference target for SAMD21G deployments is [Adafruit Feather M0 LoRa][1].
49
49
In addition to the basic Feather M0 LoRa, other products are supported. The [MCCI][3][Catena 4450][4], [Catena 4460][5], and [Catena 4470][6] products are upward compatible with the Feather M0 LoRa and therefore also can be used with this library.
50
50
51
-
The reference target for STM32L0 deployments is the Murata CMWX1ZZABZ-078, as deployed in the MCCI [Catena 4551][7], etc., with the MCCI Arduino [board support package][7]. Note that for proper TCXO control, you must use v2.3.0 or later of the arduino-lmic library.
51
+
The reference target for STM32L0 deployments is the Murata CMWX1ZZABZ-078, as deployed in the MCCI [Catena 4610][7], [Catena 4612][9], [Catena 4801][12], [Catena 4617][10], [Catena 4618][11], [Catena 4630][13]etc., with the MCCI Arduino [board support package][8]. Note that for proper TCXO control, you must use v2.3.0 or later of the arduino-lmic library.
This routine causes each registered event listener to be called with the specified event code. This is mostly for internal use, and may become `protected` in future releases.
232
241
233
242
### Manipulate the Debug Mask
234
243
235
-
_To be documented._
244
+
_To be documented. This feature is currently only in the header files and not used._
236
245
237
246
### Output a formatted log message
238
247
239
-
_To be documented._
248
+
_To be documented. This feature is currenly only used by the macro `ARDUINO_LORAWAN_PRINTF`, which in turn is only used in one place._
240
249
241
250
### Get the configured LoRaWAN region, country code, and network name
Set the buffer at `*pBuf` to the configured network region. At most `size-1` characters will be copied to the target buffer.
257
+
258
+
The result is guaranteed to be non-NULL, and is a pointer to a string. If `pBuf` is `nullptr` or `size` is zero, then the result is a constant string `"<<null>>"`. Otherwise, the result is `pBuf`. Since the result might be an immutable string, the result is declared as `const char *`. The result is guaranteed to be a well-formed string. If the buffer is too small to contain the region string, the region string will be truncated to the right as needed.
Return the region code. `Arduino_LoRaWAN::Region` contains the following values: `unknown`, `eu868`, `us915`, `cn783`, `eu433`, `au921`, `cn490`, `as923`, `kr921`, and `in866`.
Return the country code, which might be relevant to the region definiton. The defined values are `none` (in case there are no relevant country-specific variations), and `JP` (which means we must follow Japan listen-before-talk rules).
271
+
272
+
```c++
273
+
constchar *GetNetworkName() const;
274
+
```
275
+
276
+
Return the network name. Current values include `"The Things Network"` and `"machineQ"`.
244
277
245
278
### Set link-check mode
246
279
@@ -297,19 +330,28 @@ The specified function is called whenever a downlink message is received. `nBuff
297
330
298
331
### Get DevEUI, AppEUI, AppKey
299
332
300
-
_To be documented._
333
+
```c++
334
+
bool Arduino_LoRaWAN::GetDevEUI(uint8_t *pBuf);
335
+
bool Arduino_LoRaWAN::GetAppEUI(uint8_t *pBuf);
336
+
bool Arduino_LoRaWAN::GetAppKey(uint8_t *pBuf);
337
+
```
338
+
339
+
These three routines fetch the provisioned DevEUI, AppEUI, and AppKey. `pBuf` points to an 8-byte (DevEUI and AppEUI) or 16-byte (AppKey) buffer. The values are returned in network byte order: DevEUI and AppEUI are returned in little-endian byte order, and AppKey is returned in big-endian byte order.
301
340
302
341
### Test provisioning state
303
342
304
-
_To be documented._
343
+
```c++
344
+
boolArduino_LoRaWAN::IsProvisioned(void);
345
+
```
346
+
347
+
Return `true` if the LoRaWAN stack seems to be properly provisioned (provided with a valid DevEui, AppEUI and AppKey for OTAA; or provided with valid DevAddr, AppSKey and NwkSKey for ABP). Returns `false` otherwise.
305
348
306
349
## Release History
307
350
308
351
- v0.6.0 has the following changes.
309
352
310
353
- [#110](https://github.com/mcci-catena/arduino-lorawan/issues/110) tweak initial power settings for US.
0 commit comments