Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: common.h
- Revision:
- 7:e51d0fbb1a25
- Parent:
- 6:98401b545e0c
- Child:
- 8:1861d0eef60a
--- a/common.h Thu Jan 05 11:25:21 2017 +0000 +++ b/common.h Thu Jan 05 13:13:28 2017 +0000 @@ -24,6 +24,14 @@ SOUND = 4, }; +struct SensorDescription { + SensorDescription(int _sensor_id, unsigned long long _rx_address, unsigned long long _tx_address) + : sensor_id(_sensor_id), rx_address(_rx_address), tx_address(_tx_address) {} + int sensor_id; + unsigned long long rx_address; + unsigned long long tx_address; +}; + struct Data { Data(uint8_t type_, uint8_t counter_) : type(type_), counter(counter_) {}