This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

is it possible to send the data by using interrupt

hi...

i am using nrf52832 and sensor ......... is it possible to read the data by interrupting the sensor 

for example .... 

 if i am using temperature sensor if the value goes to below 37 degree then it should send the data to uart ble (via app) is it possible 

Parents Reply Children
  • static void value_from_sensor()          <-- is this supposed to be a function prototype?
                                                 If so, it should have a semicolon
    
    uint16_t threshold;
    
    {
        value_from_sensor = read_sensor_data();   <-- From above, value_from_sensor is the name of a function
                                                      You cannot assign a value to the name of a function!
    
        if( value_from_sensor > threshold )
        {
            printf("Data send.. \r\n");
        }

Related