Error[e27]:Entry "HalUARTInit::?relay in module simple sensor"
why am i getting this error while building the project
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Anyway, let us do some test on your code. If you set the following value to pData[3] and pData[4] and send them, try to see if you can receive it on receiver side.
pData[3] = (uint8)(56);
pData[4] = (uint8)(78);
uint8 data[6];
void my_test(uint8 *my_data)
{
uint16 temp;
uint16 humi;
uint16 co2;
//Get temp, humi, and co2 value
my_data[0]=(*uint8)((temp&0xFF00)>>8);
my_data[1]=(*uint8)((temp&0x00FF));
my_data[2]=(*uint8)((humi&0xFF00)>>8);
my_data[3]=(*uint8)((humi&0x00FF));
my_data[4]=(*uint8)((co2&0xFF00)>>8);
my_data[5]=(*uint8)((co2&0x00FF));
}
You can call my_test(data) and value of temp, humi, and co2 would be put in data array.