Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. /// Sensor to be polled: `temp_stub_0` is the stub temperature sensor that simulates a temperature sensor
  2. static SENSOR_DEVICE: Strn = init_strn!("temp_stub_0");
  3. /// Poll sensor every 10,000 milliseconds (10 seconds)
  4. const SENSOR_POLL_TIME: u32 = (10 * 1000);
  5. /// Use key (field name) `t` to transmit raw temperature to CoAP Server
  6. const TEMP_SENSOR_KEY: Strn = init_strn!("t");
  7. /// Type of sensor: Raw temperature sensor (integer sensor values 0 to 4095)
  8. const TEMP_SENSOR_TYPE: sensor_type_t = sensor::SENSOR_TYPE_AMBIENT_TEMPERATURE_RAW;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement