add upload message status return
This commit is contained in:
parent
111acd72b6
commit
a7689dc178
|
@ -1022,7 +1022,7 @@ void STS_SENSOR_Upload_AppData_Message(LmHandlerAppData_t stsAppdata)
|
|||
|
||||
}
|
||||
|
||||
void STS_SENSOR_Upload_Message(uint8_t appDataPort, uint8_t appBufferSize, uint8_t *appDataBuffer)
|
||||
int STS_SENSOR_Upload_Message(uint8_t appDataPort, uint8_t appBufferSize, uint8_t *appDataBuffer)
|
||||
{
|
||||
LmHandlerErrorStatus_t status = LORAMAC_HANDLER_ERROR;
|
||||
UTIL_TIMER_Time_t nextTxIn = 0;
|
||||
|
@ -1056,7 +1056,7 @@ void STS_SENSOR_Upload_Message(uint8_t appDataPort, uint8_t appBufferSize, uint8
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
static void SendTxData(void)
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -520,7 +520,7 @@ void STS_ClockSync_process(void);
|
|||
void STS_Reed_Hall_Presence_Detection(void);
|
||||
|
||||
void STS_SENSOR_Upload_Config_Invalid_Message(void);
|
||||
void STS_SENSOR_Upload_Message(uint8_t appDataPort, uint8_t appBufferSize, uint8_t *appDataBuffer);
|
||||
int STS_SENSOR_Upload_Message(uint8_t appDataPort, uint8_t appBufferSize, uint8_t *appDataBuffer);
|
||||
void STS_SENSOR_Upload_AppData_Message(LmHandlerAppData_t stsAppdata);
|
||||
void STS_SENSOR_MEMS_Get_ID(uint16_t *devID);
|
||||
void STS_RR_Sensor_read(sts_tof_range_data_t *sts_rr_sensor_data);
|
||||
|
|
|
@ -2040,9 +2040,11 @@ void STS_FHMOS_sensor_upload_map(uint8_t map_index)
|
|||
}
|
||||
|
||||
APP_LOG(TS_OFF, VLEVEL_M, "\r\n Bitmap uploading, size=%02x\r\n", i);
|
||||
STS_SENSOR_Upload_Message(YUNHORN_STS_L8_LORA_APP_DATA_PORT, i, (uint8_t *)tstbuf);
|
||||
|
||||
sts_fhmos_bitmap_pending = FHMOS_BITMAP_FINISHED; // 2;
|
||||
int status=STS_SENSOR_Upload_Message(YUNHORN_STS_L8_LORA_APP_DATA_PORT, i, (uint8_t *)tstbuf);
|
||||
if ((map_index ==0x02)&& (status ==0))
|
||||
{
|
||||
sts_fhmos_bitmap_pending = FHMOS_BITMAP_FINISHED; // 2;
|
||||
}
|
||||
APP_LOG(TS_OFF, VLEVEL_M, "\r\n +++++++++++++++++++++++ \r\nBitmap Pending uploaded, fhmos_bitmap_statue=%d\r\n", sts_fhmos_bitmap_pending);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue