Hi,
Here is my C function below. At a simpler CCS program for testing small code, the char led2[10] gets the value that I expect it to have from calling exosite_readSingle(). However, I copied and paste this to the program I am working on and char led2[10] does not get updated. What could be causing this? I have already set optimization to "off". Is this caused by something set at CCS?
void cloud_demo( void )
{
int32_t Read_status = 0;
int32_t cloud_data1 = 0;
uint16_t response_length1 = 0;
char led2[10];
//use exosite_read to read multiple aliases values
Read_status = exosite_readSingle("ledd2", led2, 10, &response_length1);
if (Read_status == 0)
{
cloud_data1 = exoPal_atoi(led2);
//UARTprintf(" Exosite Read: %s=%d\r\n", LED2_ALIAS, cloud_data1);
}
}