@@ -37,35 +37,35 @@ class LoRaWANBase {
37
37
*/
38
38
virtual lorawan_status_t initialize (events::EventQueue *queue) = 0;
39
39
40
- /* * Connect OTAA or ABP using Mbed- OS config system
40
+ /* * Connect OTAA or ABP using the Mbed OS config system
41
41
*
42
42
* Connect by Over The Air Activation or Activation By Personalization.
43
- * You need to configure the connection properly via the Mbed OS configuration
43
+ * You need to configure the connection properly using the Mbed OS configuration
44
44
* system.
45
45
*
46
- * When connecting via OTAA, the return code for success (LORAWAN_STATUS_CONNECT_IN_PROGRESS) is negative.
47
- * However, this is not a real error. It tells you that the connection is in progress and you will
48
- * be notified of the completion via an event . By default, after the Join Accept message
46
+ * When connecting through OTAA, the return code for success (LORAWAN_STATUS_CONNECT_IN_PROGRESS) is negative.
47
+ * However, this is not a real error. It tells you that the connection is in progress, and an event will
48
+ * notify you of the completion. By default, after the Join Accept message
49
49
* is received, base stations may provide the node with a CF-List that replaces
50
50
* all user-configured channels except the Join/Default channels. A CF-List can
51
51
* configure a maximum of five channels other than the default channels.
52
52
*
53
53
* To configure more channels, we recommend that you use the `set_channel_plan()` API after the connection.
54
54
* By default, the PHY layers configure only the mandatory Join channels. The retransmission back-off restrictions
55
- * on these channels are severe and you may experience long delays or even failures in the confirmed traffic.
55
+ * on these channels are severe, and you may experience long delays or even failures in the confirmed traffic.
56
56
* If you add more channels, the aggregated duty cycle becomes much more relaxed as compared to the Join (default) channels only.
57
57
*
58
58
* **NOTES ON RECONNECTION:**
59
59
* Currently, the Mbed OS LoRaWAN implementation does not support non-volatile
60
60
* memory storage. Therefore, the state and frame counters cannot be restored after
61
61
* a power cycle. However, if you use the `disconnect()` API to shut down the LoRaWAN
62
- * protocol, the state and frame counters are saved. Connecting again would try to
63
- * restore the previous session. According to the LoRaWAN 1.0.2 specification, the frame counters are always reset
64
- * to zero for OTAA and a new Join request lets the network server know
65
- * that the counters need a reset. The same is said about the ABP but there
62
+ * protocol, the state and frame counters are saved. Connecting again
63
+ * restores the previous session. According to the LoRaWAN 1.0.2 specification, the frame counters are always reset
64
+ * to 0 for OTAA, and a new Join request lets the network server know
65
+ * that the counters need a reset. The same is said about the ABP, but there
66
66
* is no way to convey this information to the network server. For a network
67
67
* server, an ABP device is always connected. That's why storing the frame counters
68
- * is important, at least for ABP. That's why we try to restore frame counters from
68
+ * is important for ABP. That's why we restore frame counters from
69
69
* session information after a disconnection.
70
70
*
71
71
* @return Common: LORAWAN_STATUS_NOT_INITIALIZED if system is not initialized with initialize(),
@@ -87,31 +87,31 @@ class LoRaWANBase {
87
87
* All connection parameters are chosen by the user and provided in the
88
88
* data structure passed down.
89
89
*
90
- * When connecting via OTAA, the return code for success (LORAWAN_STATUS_CONNECT_IN_PROGRESS) is negative.
91
- * However, this is not a real error. It tells you that connection is in progress and you will
92
- * be notified of completion via an event . By default, after Join Accept message
93
- * is received, base stations may provide the node with a CF-List which replaces
90
+ * When connecting using OTAA, the return code for success (LORAWAN_STATUS_CONNECT_IN_PROGRESS) is negative.
91
+ * However, this is not a real error. It tells you that connection is in progress, and an event will
92
+ * notify you of completion. By default, after Join Accept message
93
+ * is received, base stations may provide the node with a CF-List that replaces
94
94
* all user-configured channels except the Join/Default channels. A CF-List can
95
95
* configure a maximum of five channels other than the default channels.
96
96
*
97
97
* To configure more channels, we recommend that you use the `set_channel_plan()` API after the connection.
98
98
* By default, the PHY layers configure only the mandatory Join
99
99
* channels. The retransmission back-off restrictions on these channels
100
- * are severe and you may experience long delays or even
100
+ * are severe, and you may experience long delays or even
101
101
* failures in the confirmed traffic. If you add more channels, the aggregated duty
102
102
* cycle becomes much more relaxed as compared to the Join (default) channels only.
103
103
*
104
104
* **NOTES ON RECONNECTION:**
105
105
* Currently, the Mbed OS LoRaWAN implementation does not support non-volatile
106
106
* memory storage. Therefore, the state and frame counters cannot be restored after
107
107
* a power cycle. However, if you use the `disconnect()` API to shut down the LoRaWAN
108
- * protocol, the state and frame counters are saved. Connecting again would try to
109
- * restore the previous session. According to the LoRaWAN 1.0.2 specification, the frame counters are always reset
110
- * to zero for OTAA and a new Join request lets the network server know
111
- * that the counters need a reset. The same is said about the ABP but there
108
+ * protocol, the state and frame counters are saved. Connecting again
109
+ * restores the previous session. According to the LoRaWAN 1.0.2 specification, the frame counters are always reset
110
+ * to zero for OTAA, and a new Join request lets the network server know
111
+ * that the counters need a reset. The same is said about the ABP, but there
112
112
* is no way to convey this information to the network server. For a network
113
113
* server, an ABP device is always connected. That's why storing the frame counters
114
- * is important, at least for ABP. That's why we try to restore frame counters from
114
+ * is important for ABP. That's why we restore frame counters from
115
115
* session information after a disconnection.
116
116
*
117
117
* @param connect Options for an end device connection to the gateway.
@@ -146,15 +146,15 @@ class LoRaWANBase {
146
146
* from the Network Server, user provided method is called.
147
147
*
148
148
* One way to use this API may be the validation of connectivity after a long
149
- * deep sleep. Mbed LoRaWANStack piggy-backs the MAC commands with data
150
- * frame payload so the application needs to try sending something and the Network
149
+ * deep sleep. Mbed LoRaWANStack follows the MAC commands with data
150
+ * frame payload, so the application needs send something, and the Network
151
151
* Server may respond during the RX slots.
152
152
*
153
153
* This API is usable only when the 'link_check_resp' callback is set by
154
154
* the application. See add_lora_app_callbacks API. If the above mentioned
155
155
* callback is not set, a LORAWAN_STATUS_PARAMETER_INVALID error is thrown.
156
156
*
157
- * First parameter to callback function is the demodulation margin and
157
+ * The first parameter to callback function is the demodulation margin, and
158
158
* the second parameter is the number of gateways that successfully received
159
159
* the last request.
160
160
*
@@ -172,7 +172,7 @@ class LoRaWANBase {
172
172
173
173
/* * Removes link check request sticky MAC command.
174
174
*
175
- * Any already queued request may still get entertained . However, no new
175
+ * Any already queued request may still be completed . However, no new
176
176
* requests will be made.
177
177
*/
178
178
virtual void remove_link_check_request () = 0;
@@ -185,14 +185,14 @@ class LoRaWANBase {
185
185
* @return LORAWAN_STATUS_OK if everything goes well, otherwise
186
186
* a negative error code:
187
187
* LORAWAN_STATUS_NOT_INITIALIZED if system is not initialized with initialize(),
188
- * LORAWAN_STATUS_PARAMETER_INVALID if ADR is enabled or invalid datarate is given
188
+ * LORAWAN_STATUS_PARAMETER_INVALID if ADR is enabled or invalid data rate is given
189
189
*/
190
190
virtual lorawan_status_t set_datarate (uint8_t data_rate) = 0;
191
191
192
192
/* * Enables adaptive data rate (ADR)
193
193
*
194
194
* The underlying LoRaPHY and LoRaMac layers handle the data rate automatically
195
- * for the user, based upon the radio conditions (network congestion).
195
+ * for the user, based on the radio conditions (network congestion).
196
196
*
197
197
* @return LORAWAN_STATUS_OK on success, negative error code
198
198
* on failure:
@@ -202,11 +202,11 @@ class LoRaWANBase {
202
202
203
203
/* * Disables adaptive data rate
204
204
*
205
- * When adaptive data rate (ADR) is disabled, you can either set a certain
206
- * data rate or the MAC layer selects a default value.
205
+ * When adaptive data rate (ADR) is disabled, either you can set a certain
206
+ * data rate, or the MAC layer selects a default value.
207
207
*
208
208
* @return LORAWAN_STATUS_OK on success, negative error code on failure:
209
- * LORAWAN_STATUS_NOT_INITIALIZED if system is not initialized with initialize()
209
+ * LORAWAN_STATUS_NOT_INITIALIZED if system is not initialized with initialize()
210
210
*/
211
211
virtual lorawan_status_t disable_adaptive_datarate () = 0;
212
212
@@ -218,8 +218,8 @@ class LoRaWANBase {
218
218
* receive an acknowledgment. The MAC performs a data rate adaptation as in
219
219
* the LoRaWAN Specification V1.0.2, chapter 18.4, table on page 64.
220
220
*
221
- * Note, that if number of retries is set to 1 or 2, MAC will not decrease
222
- * the datarate , if the LoRaMAC layer did not receive an acknowledgment.
221
+ * Note that if the number of retries is set to 1 or 2, MAC does not decrease
222
+ * the data rate , if the LoRaMAC layer did not receive an acknowledgment.
223
223
*
224
224
* @param count The number of retries for confirmed messages.
225
225
*
@@ -239,15 +239,15 @@ class LoRaWANBase {
239
239
* is already active, the request is silently ignored. A negative error
240
240
* code is returned if there is any problem with parameters.
241
241
*
242
- * Please note that this API can also be used to add a single channel to the
242
+ * Please note that you can also use this API to add a single channel to the
243
243
* existing channel plan.
244
244
*
245
245
* There is no reverse mechanism in the 1.0.2 specification for a node to request
246
246
* a particular channel. Only the network server can initiate such a request.
247
247
* You need to ensure that the corresponding base station supports the channel or channels being added.
248
248
*
249
249
* If your list includes a default channel (a channel where Join Requests
250
- * are received) you cannot fully configure the channel parameters.
250
+ * are received), you cannot fully configure the channel parameters.
251
251
* Either leave the channel settings to default or check your
252
252
* corresponding PHY layer implementation. For example, LoRaPHYE868.
253
253
*
@@ -256,9 +256,9 @@ class LoRaWANBase {
256
256
* @return LORAWAN_STATUS_OK on success, a negative error code on failure:
257
257
* LORAWAN_STATUS_NOT_INITIALIZED if system is not initialized with initialize(),
258
258
* LORAWAN_STATUS_PARAMETER_INVALID if number of channels is exceeding the PHY limit,
259
- * LORAWAN_STATUS_DATARATE_INVALID if invalid datarate is given,
259
+ * LORAWAN_STATUS_DATARATE_INVALID if invalid data rate is given,
260
260
* LORAWAN_STATUS_FREQUENCY_INVALID if invalid frequency is given,
261
- * LORAWAN_STATUS_FREQ_AND_DR_INVALID if invalid datarate and freqency are given,
261
+ * LORAWAN_STATUS_FREQ_AND_DR_INVALID if invalid data rate and freqency are given,
262
262
* LORAWAN_STATUS_BUSY if TX currently ongoing,
263
263
* LORAWAN_STATUS_SERVICE_UNKNOWN if custom channel plans are disabled in PHY
264
264
*/
@@ -362,8 +362,8 @@ class LoRaWANBase {
362
362
* one another depending on the intended use case or reception
363
363
* expectation.
364
364
*
365
- * e.g. , MSG_CONFIRMED_FLAG and MSG_UNCONFIRMED_FLAG are
366
- * not mutually exclusive, i.e. , the user can subscribe to
365
+ * For example , MSG_CONFIRMED_FLAG and MSG_UNCONFIRMED_FLAG are
366
+ * not mutually exclusive. In other words , the user can subscribe to
367
367
* receive both CONFIRMED AND UNCONFIRMED messages at
368
368
* the same time.
369
369
*
@@ -385,7 +385,7 @@ class LoRaWANBase {
385
385
*
386
386
* @param length The size of data in bytes
387
387
*
388
- * @param port Return the number of port to which message was received.
388
+ * @param port Return the number of port from which message was received.
389
389
*
390
390
* @param flags Return flags to determine what type of message was received.
391
391
* MSG_UNCONFIRMED_FLAG = 0x01
@@ -518,13 +518,13 @@ class LoRaWANBase {
518
518
* This API is used to cancel any outstanding transmission in the TX pipe.
519
519
* If an event for transmission is not already queued at the end of backoff timer,
520
520
* the system can cancel the outstanding outgoing packet. Otherwise, the system is
521
- * busy sending and can't be held back. The system will not try to re-send if the
521
+ * busy sending and can't be held back. The system will not try to resend if the
522
522
* outgoing message was a CONFIRMED message even if the ack is not received.
523
523
*
524
- * @return LORAWAN_STATUS_OK if the sending is cancelled , otherwise
524
+ * @return LORAWAN_STATUS_OK if the sending is canceled , otherwise
525
525
* other negative error code if request failed:
526
526
* LORAWAN_STATUS_NOT_INITIALIZED if system is not initialized with initialize(),
527
- * LORAWAN_STATUS_BUSY if the send cannot be cancelled
527
+ * LORAWAN_STATUS_BUSY if the send cannot be canceled
528
528
*/
529
529
virtual lorawan_status_t cancel_sending (void ) = 0;
530
530
};
0 commit comments