@@ -49,7 +49,7 @@ class LoRaWANInterface {
49
49
*/
50
50
LoRaWANInterface (LoRaRadio &radio, LoRaPHY &phy);
51
51
52
- virtual ~LoRaWANInterface ();
52
+ ~LoRaWANInterface ();
53
53
54
54
/* * Initialize the LoRa stack.
55
55
*
@@ -60,7 +60,7 @@ class LoRaWANInterface {
60
60
* @return LORAWAN_STATUS_OK on success, a negative error code on failure:
61
61
* LORAWAN_STATUS_PARAMETER_INVALID is NULL queue is given.
62
62
*/
63
- virtual lorawan_status_t initialize (events::EventQueue *queue);
63
+ lorawan_status_t initialize (events::EventQueue *queue);
64
64
65
65
/* * Connect OTAA or ABP using the Mbed OS config system
66
66
*
@@ -104,7 +104,7 @@ class LoRaWANInterface {
104
104
* LORAWAN_STATUS_ALREADY_CONNECTED (if a network was already joined successfully).
105
105
* A 'CONNECTED' event is sent to the application when the JoinAccept is received.
106
106
*/
107
- virtual lorawan_status_t connect ();
107
+ lorawan_status_t connect ();
108
108
109
109
/* * Connect OTAA or ABP with parameters
110
110
*
@@ -149,14 +149,14 @@ class LoRaWANInterface {
149
149
* (if a network was already joined successfully).
150
150
* A 'CONNECTED' event is sent to the application when the JoinAccept is received.
151
151
*/
152
- virtual lorawan_status_t connect (const lorawan_connect_t &connect);
152
+ lorawan_status_t connect (const lorawan_connect_t &connect);
153
153
154
154
/* * Disconnect the current session.
155
155
*
156
156
* @return LORAWAN_STATUS_DEVICE_OFF on success, a negative error code on failure:
157
157
* LORAWAN_STATUS_NOT_INITIALIZED if system is not initialized with initialize(),
158
158
*/
159
- virtual lorawan_status_t disconnect ();
159
+ lorawan_status_t disconnect ();
160
160
161
161
/* * Validate the connectivity with the network.
162
162
*
@@ -185,13 +185,13 @@ class LoRaWANInterface {
185
185
* LORAWAN_STATUS_PARAMETER_INVALID if link_check_resp callback method is not set.
186
186
*
187
187
*/
188
- virtual lorawan_status_t add_link_check_request ();
188
+ lorawan_status_t add_link_check_request ();
189
189
190
190
/* * Removes link check request sticky MAC command.
191
191
*
192
192
* Any already queued request may still be completed. However, no new requests will be made.
193
193
*/
194
- virtual void remove_link_check_request ();
194
+ void remove_link_check_request ();
195
195
196
196
/* * Sets up a particular data rate
197
197
*
@@ -201,7 +201,7 @@ class LoRaWANInterface {
201
201
* LORAWAN_STATUS_NOT_INITIALIZED if system is not initialized with initialize(),
202
202
* LORAWAN_STATUS_PARAMETER_INVALID if ADR is enabled or invalid data rate is given
203
203
*/
204
- virtual lorawan_status_t set_datarate (uint8_t data_rate);
204
+ lorawan_status_t set_datarate (uint8_t data_rate);
205
205
206
206
/* * Enables adaptive data rate (ADR)
207
207
*
@@ -211,7 +211,7 @@ class LoRaWANInterface {
211
211
* @return LORAWAN_STATUS_OK on success, negative error code on failure:
212
212
* LORAWAN_STATUS_NOT_INITIALIZED if system is not initialized with initialize()
213
213
*/
214
- virtual lorawan_status_t enable_adaptive_datarate ();
214
+ lorawan_status_t enable_adaptive_datarate ();
215
215
216
216
/* * Disables adaptive data rate
217
217
*
@@ -221,7 +221,7 @@ class LoRaWANInterface {
221
221
* @return LORAWAN_STATUS_OK on success, negative error code on failure:
222
222
* LORAWAN_STATUS_NOT_INITIALIZED if system is not initialized with initialize()
223
223
*/
224
- virtual lorawan_status_t disable_adaptive_datarate ();
224
+ lorawan_status_t disable_adaptive_datarate ();
225
225
226
226
/* * Sets up the retry counter for confirmed messages.
227
227
*
@@ -240,7 +240,7 @@ class LoRaWANInterface {
240
240
* LORAWAN_STATUS_NOT_INITIALIZED if system is not initialized with initialize()
241
241
* LORAWAN_STATUS_PARAMETER_INVALID if count >= 255
242
242
*/
243
- virtual lorawan_status_t set_confirmed_msg_retries (uint8_t count);
243
+ lorawan_status_t set_confirmed_msg_retries (uint8_t count);
244
244
245
245
/* * Sets the channel plan.
246
246
*
@@ -272,7 +272,7 @@ class LoRaWANInterface {
272
272
* LORAWAN_STATUS_BUSY if TX currently ongoing,
273
273
* LORAWAN_STATUS_SERVICE_UNKNOWN if custom channel plans are disabled in PHY
274
274
*/
275
- virtual lorawan_status_t set_channel_plan (const lorawan_channelplan_t &channel_plan);
275
+ lorawan_status_t set_channel_plan (const lorawan_channelplan_t &channel_plan);
276
276
277
277
/* * Gets the channel plans from the LoRa stack.
278
278
*
@@ -286,7 +286,7 @@ class LoRaWANInterface {
286
286
* LORAWAN_STATUS_NOT_INITIALIZED if system is not initialized with initialize(),
287
287
* LORAWAN_STATUS_SERVICE_UNKNOWN if custom channel plans are disabled in PHY
288
288
*/
289
- virtual lorawan_status_t get_channel_plan (lorawan_channelplan_t &channel_plan);
289
+ lorawan_status_t get_channel_plan (lorawan_channelplan_t &channel_plan);
290
290
291
291
/* * Removes an active channel plan.
292
292
*
@@ -298,7 +298,7 @@ class LoRaWANInterface {
298
298
* LORAWAN_STATUS_BUSY if TX currently ongoing,
299
299
* LORAWAN_STATUS_SERVICE_UNKNOWN if custom channel plans are disabled in PHY
300
300
*/
301
- virtual lorawan_status_t remove_channel_plan ();
301
+ lorawan_status_t remove_channel_plan ();
302
302
303
303
/* * Removes a single channel.
304
304
*
@@ -312,7 +312,7 @@ class LoRaWANInterface {
312
312
* LORAWAN_STATUS_BUSY if TX currently ongoing,
313
313
* LORAWAN_STATUS_SERVICE_UNKNOWN if custom channel plans are disabled in PHY
314
314
*/
315
- virtual lorawan_status_t remove_channel (uint8_t index);
315
+ lorawan_status_t remove_channel (uint8_t index);
316
316
317
317
/* * Send message to gateway
318
318
*
@@ -341,7 +341,7 @@ class LoRaWANInterface {
341
341
* LORAWAN_STATUS_PORT_INVALID if trying to send to an invalid port (e.g. to 0)
342
342
* LORAWAN_STATUS_PARAMETER_INVALID if NULL data pointer is given or flags are invalid.
343
343
*/
344
- virtual int16_t send (uint8_t port, const uint8_t *data,
344
+ int16_t send (uint8_t port, const uint8_t *data,
345
345
uint16_t length, int flags);
346
346
347
347
/* * Receives a message from the Network Server on a specific port.
@@ -378,7 +378,7 @@ class LoRaWANInterface {
378
378
* LORAWAN_STATUS_PARAMETER_INVALID if NULL data or length is given,
379
379
* LORAWAN_STATUS_WOULD_BLOCK if incorrect port or flags are given,
380
380
*/
381
- virtual int16_t receive (uint8_t port, uint8_t *data, uint16_t length, int flags);
381
+ int16_t receive (uint8_t port, uint8_t *data, uint16_t length, int flags);
382
382
383
383
/* * Receives a message from the Network Server on any port.
384
384
*
@@ -403,7 +403,7 @@ class LoRaWANInterface {
403
403
* LORAWAN_STATUS_PARAMETER_INVALID if NULL data or length is given,
404
404
* LORAWAN_STATUS_WOULD_BLOCK if there is nothing available to read at the moment.
405
405
*/
406
- virtual int16_t receive (uint8_t *data, uint16_t length, uint8_t &port, int &flags);
406
+ int16_t receive (uint8_t *data, uint16_t length, uint8_t &port, int &flags);
407
407
408
408
/* * Add application callbacks to the stack.
409
409
*
@@ -444,7 +444,7 @@ class LoRaWANInterface {
444
444
* LORAWAN_STATUS_NOT_INITIALIZED if system is not initialized with initialize(),
445
445
* LORAWAN_STATUS_PARAMETER_INVALID if events callback is not set
446
446
*/
447
- virtual lorawan_status_t add_app_callbacks (lorawan_app_callbacks_t *callbacks);
447
+ lorawan_status_t add_app_callbacks (lorawan_app_callbacks_t *callbacks);
448
448
449
449
/* * Change device class
450
450
*
@@ -456,7 +456,7 @@ class LoRaWANInterface {
456
456
* LORAWAN_STATUS_NOT_INITIALIZED if system is not initialized with initialize(),
457
457
* LORAWAN_STATUS_UNSUPPORTED if requested class is not supported
458
458
*/
459
- virtual lorawan_status_t set_device_class (device_class_t device_class);
459
+ lorawan_status_t set_device_class (device_class_t device_class);
460
460
461
461
/* * Get hold of TX meta-data
462
462
*
@@ -471,7 +471,7 @@ class LoRaWANInterface {
471
471
* LORAWAN_STATUS_NOT_INITIALIZED if system is not initialized with initialize(),
472
472
* LORAWAN_STATUS_METADATA_NOT_AVAILABLE if the meta-data is not available
473
473
*/
474
- virtual lorawan_status_t get_tx_metadata (lorawan_tx_metadata &metadata);
474
+ lorawan_status_t get_tx_metadata (lorawan_tx_metadata &metadata);
475
475
476
476
/* * Get hold of RX meta-data
477
477
*
@@ -486,7 +486,7 @@ class LoRaWANInterface {
486
486
* LORAWAN_STATUS_NOT_INITIALIZED if system is not initialized with initialize(),
487
487
* LORAWAN_STATUS_METADATA_NOT_AVAILABLE if the meta-data is not available
488
488
*/
489
- virtual lorawan_status_t get_rx_metadata (lorawan_rx_metadata &metadata);
489
+ lorawan_status_t get_rx_metadata (lorawan_rx_metadata &metadata);
490
490
491
491
/* * Get hold of backoff time
492
492
*
@@ -505,7 +505,7 @@ class LoRaWANInterface {
505
505
* LORAWAN_STATUS_NOT_INITIALIZED if system is not initialized with initialize(),
506
506
* LORAWAN_STATUS_METADATA_NOT_AVAILABLE if the meta-data is not available
507
507
*/
508
- virtual lorawan_status_t get_backoff_metadata (int &backoff);
508
+ lorawan_status_t get_backoff_metadata (int &backoff);
509
509
510
510
/* * Cancel outgoing transmission
511
511
*
@@ -521,7 +521,7 @@ class LoRaWANInterface {
521
521
* LORAWAN_STATUS_BUSY if the send cannot be canceled
522
522
* LORAWAN_STATUS_NO_OP if the operation cannot be completed (nothing to cancel)
523
523
*/
524
- virtual lorawan_status_t cancel_sending (void );
524
+ lorawan_status_t cancel_sending (void );
525
525
526
526
void lock (void )
527
527
{
0 commit comments