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: sensor_board.h
- Revision:
- 34:e67581c9b50d
- Parent:
- 29:c2838405fa5c
- Child:
- 37:1251e35fe43e
--- a/sensor_board.h Tue Jan 17 11:39:59 2017 +0100
+++ b/sensor_board.h Tue Jan 17 11:44:16 2017 +0100
@@ -6,9 +6,9 @@
public:
explicit Board(unsigned long long rx_address, DigitalSensor* digital_sensor,
AnalogSensor* analog_sensor, unsigned long long tx_address=MASTER_ADDRESS);
-
+
void run();
-
+
static const int MAX_RETRY;
private:
int getRandomWaitMs();
@@ -16,11 +16,11 @@
void displayRadioSetup();
bool send(Data data_to_send);
void updateSensor(Sensor* sensor, bool* should_send_data);
-
+
Serial pc_;
nRF24L01P radio_;
AnalogSensor* analog_sensor_;
DigitalSensor* digital_sensor_;
Ticker analog_ticker_;
Ticker digital_ticker_;
-};
\ No newline at end of file
+};