|
|
|
@ -1010,12 +1010,6 @@ static void OnJoinRequest(LmHandlerJoinParams_t *joinParams)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
STS_LoRa_WAN_Joined = (uint8_t) joinParams->Mode;
|
|
|
|
|
AppData.Port = 1;
|
|
|
|
|
AppData.BufferSize = 10;
|
|
|
|
|
UTIL_MEM_cpy_8((uint8_t*)AppData.Buffer, "YUNHORN168", 10);
|
|
|
|
|
LmHandlerParams.IsTxConfirmed = true;
|
|
|
|
|
LmHandlerErrorStatus_t status = LmHandlerSend(&AppData, LmHandlerParams.IsTxConfirmed, false);
|
|
|
|
|
if (status ==LORAMAC_HANDLER_SUCCESS ) LmHandlerParams.IsTxConfirmed = false;
|
|
|
|
|
|
|
|
|
|
OnYunhornSTSHeartBeatPeriodicityChanged(HeartBeatPeriodicity);
|
|
|
|
|
OnTxPeriodicityChanged(TxPeriodicity);
|
|
|
|
@ -1029,7 +1023,7 @@ static void OnJoinRequest(LmHandlerJoinParams_t *joinParams)
|
|
|
|
|
APP_LOG(TS_OFF, VLEVEL_M, "###### U/L FRAME:JOIN | DR:%d | PWR:%d\r\n", joinParams->Datarate, joinParams->TxPower);
|
|
|
|
|
}
|
|
|
|
|
//heart_beat_timer = 1;
|
|
|
|
|
//SendTxData();
|
|
|
|
|
SendTxData();
|
|
|
|
|
//UTIL_SEQ_SetTask((1 << CFG_SEQ_Task_LoRaSendOnTxTimerOrButtonEvent), CFG_SEQ_Prio_0);
|
|
|
|
|
//STS_SENSOR_Upload_Message(LORAWAN_USER_HTBT_PORT, 12,"Yunhorn88STS");
|
|
|
|
|
//STS_SENSOR_Upload_Message(LORAWAN_USER_HTBT_PORT, 12,"Yunhorn88STS");
|
|
|
|
|