mcci-catena / Catena-Sketches

Top-level Arduino sketches for the MCCI Catena family of IoT LPWA Devices
MIT License
12 stars 21 forks source link

Missing of settleDoneCb results in "not provisioned, idling". #80

Closed dhineshkumarmcci closed 5 years ago

dhineshkumarmcci commented 5 years ago

In the last commit referring issue #78 misses the declaration of settleDoneCb to 'pFn' under "sendBufferDoneCb". This ends up in call of function "txNotProvisionedCb" instead of "settleDoneCb". https://github.com/mcci-catena/Catena-Sketches/blob/84e60d8d31b420a8dd846d97392f47059742f26d/catena4450m102_pond/catena4450m102_pond.ino#L607-L619 The test log shows that the device is provisioned already with lorawan configure commands. Please find the test log attached below:

This is the catena4450m102_pond program V0.3.0.
Target network: The Things Network / us915
Current board: Catena 4450
Enter 'help' for a list of commands.
(remember to select 'Line Ending: Newline' at the bottom of the monitor window.)
--------------------------------------------------------------------------------

LoRaWAN init: succeeded
message cycle time 30 seconds for 30 messages
CPU Unique ID: 21-ac-34-0a-35-50-4d-51-20-20-20-35-36-0c-11-ff
EUI64: 00-02-cc-01-00-00-00-7d
Platform Flags:  0x00001c19
Operating Flags:  0x00000001
No mods detected
vBat:    4350 mV
BME280:  T: 29 P: 100542 RH: 45
BH1750:  183 lux
EV_TXSTART
EV_TXCOMPLETE
not provisioned, idling
lorawan configure deveui
00-02-cc-01-00-00-00-7e
lorawan configure appeui

OK
70-b3-d5-7e-d0-01-3d-b6
OK
lorawan configure appkey
93-f0-84-5d-da-79-a7-7a-f2-39-92-ce-92-a0-cf-fc
OK
lorawan configure join
01
OK
dhineshkumarmcci commented 5 years ago

With the declaration of settleDoneCb to 'pFn' under "sendBufferDoneCb", things work as expected.