Is it possible to set the systime to the server network time using MAC command in a Class A device?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-01-16 12:46 AM
I am using the software I-CubeLoRaWAN to create a class A end node from a STM32 and SX1272. From the spec the protocol LORAWAN have a MAC command to request the server time. This function is implemented in I-CubeLoRaWAN (file lora.c) :
#ifdef LORAMAC_CLASSB_ENABLED
#if defined( USE_DEVICE_TIMING )
static LoraErrorStatus LORA_DeviceTimeReq( void){
MlmeReq_t mlmeReq;
mlmeReq.Type = MLME_DEVICE_TIME;
if( LoRaMacMlmeRequest( &mlmeReq ) == LORAMAC_STATUS_OK ){
return LORA_SUCCESS;
}else{
return LORA_ERROR;
}
}
As showed in the code, the function is not defined if LORAMAC_CLASSB_ENABLED is not defined. Since i am using a class A end node how should i modify this?
Labels:
- Labels:
-
LoRa
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-01-16 12:47 AM
Is it better to define LORAMAC_CLASSB_ENABLED even if i stay with a class A or modify the code to define the function even if LORAMAC_CLASSB_ENABLED is not define?
