wip not good so far
This commit is contained in:
parent
a807b67fa8
commit
aab3332330
|
@ -471,21 +471,22 @@ void LoRaWAN_Init(void)
|
||||||
|
|
||||||
/* Init Info table used by LmHandler*/
|
/* Init Info table used by LmHandler*/
|
||||||
LoraInfo_Init();
|
LoraInfo_Init();
|
||||||
|
APP_LOG(TS_OFF, VLEVEL_M, "\n start 1\n");
|
||||||
/* Init the Lora Stack*/
|
/* Init the Lora Stack*/
|
||||||
LmHandlerInit(&LmHandlerCallbacks, APP_VERSION);
|
LmHandlerInit(&LmHandlerCallbacks, APP_VERSION);
|
||||||
|
|
||||||
LmHandlerConfigure(&LmHandlerParams);
|
LmHandlerConfigure(&LmHandlerParams);
|
||||||
|
APP_LOG(TS_OFF, VLEVEL_M, "\n start 2\n");
|
||||||
/* USER CODE BEGIN LoRaWAN_Init_2 */
|
/* USER CODE BEGIN LoRaWAN_Init_2 */
|
||||||
UTIL_TIMER_Start(&JoinLedTimer);
|
UTIL_TIMER_Start(&JoinLedTimer);
|
||||||
|
|
||||||
/* USER CODE END LoRaWAN_Init_2 */
|
/* USER CODE END LoRaWAN_Init_2 */
|
||||||
|
APP_LOG(TS_OFF, VLEVEL_M, "\n start 3\n");
|
||||||
LmHandlerJoin(ActivationType, ForceRejoin);
|
LmHandlerJoin(ActivationType, ForceRejoin);
|
||||||
|
APP_LOG(TS_OFF, VLEVEL_M, "\n start 3 FORCE JOIN\n");
|
||||||
if (EventType == TX_ON_TIMER)
|
if (EventType == TX_ON_TIMER)
|
||||||
{
|
{
|
||||||
|
APP_LOG(TS_OFF, VLEVEL_M, "\n start 4\n");
|
||||||
/* send every time timer elapses */
|
/* send every time timer elapses */
|
||||||
UTIL_TIMER_Create(&TxTimer, TxPeriodicity, UTIL_TIMER_ONESHOT, OnTxTimerEvent, NULL);
|
UTIL_TIMER_Create(&TxTimer, TxPeriodicity, UTIL_TIMER_ONESHOT, OnTxTimerEvent, NULL);
|
||||||
UTIL_TIMER_Start(&TxTimer);
|
UTIL_TIMER_Start(&TxTimer);
|
||||||
|
@ -493,11 +494,12 @@ void LoRaWAN_Init(void)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* USER CODE BEGIN LoRaWAN_Init_3 */
|
/* USER CODE BEGIN LoRaWAN_Init_3 */
|
||||||
|
APP_LOG(TS_OFF, VLEVEL_M, "\n start 5\n");
|
||||||
/* USER CODE END LoRaWAN_Init_3 */
|
/* USER CODE END LoRaWAN_Init_3 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* USER CODE BEGIN LoRaWAN_Init_Last */
|
/* USER CODE BEGIN LoRaWAN_Init_Last */
|
||||||
|
APP_LOG(TS_OFF, VLEVEL_M, "\n reboot config start \n");
|
||||||
|
|
||||||
STS_REBOOT_CONFIG_Init();
|
STS_REBOOT_CONFIG_Init();
|
||||||
|
|
||||||
|
|
|
@ -431,7 +431,7 @@ int sts_tof_vl53lx_peoplecount_init(void)
|
||||||
APP_LOG(TS_OFF, VLEVEL_L,"Initialization or configuration of the device\n");
|
APP_LOG(TS_OFF, VLEVEL_L,"Initialization or configuration of the device\n");
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
APP_LOG(TS_OFF, VLEVEL_L,"Start counting people with profile : %s...\n", PROFILE_STRING);
|
APP_LOG(TS_OFF, VLEVEL_L,"\n\nStart counting people with profile : %s...\n\n", PROFILE_STRING);
|
||||||
status = VL53L1X_StartRanging(dev); /* This function has to be called to enable the ranging */
|
status = VL53L1X_StartRanging(dev); /* This function has to be called to enable the ranging */
|
||||||
|
|
||||||
if (status != 0) {
|
if (status != 0) {
|
||||||
|
|
Loading…
Reference in New Issue