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.
Dependencies: MaximInterface mbed
Diff: SensorNode.cpp
- Revision:
- 17:41be4896ed6d
- Parent:
- 14:0962f818bf7f
- Child:
- 18:6fbf7e7b6ab6
diff -r 6bce01c1dd90 -r 41be4896ed6d SensorNode.cpp
--- a/SensorNode.cpp Wed Jun 15 15:16:15 2016 -0500
+++ b/SensorNode.cpp Thu Jul 21 11:06:13 2016 -0500
@@ -34,6 +34,7 @@
#include "SensorNode.hpp"
#include "common.hpp"
#include "Masters/DS2465/DS2465.h"
+#include "RomId/RomCommands.h"
#include "I2C.h"
#ifdef TARGET_MAX32600
@@ -45,6 +46,7 @@
#endif
using namespace OneWire;
+using namespace OneWire::RomCommands;
bool SensorNode::rngInitialized = false;
@@ -205,7 +207,7 @@
ds2465.OWSetSpeed(DS2465::OverdriveSpeed);
RomId romId;
- if (ds2465.OWReadRom(romId) != OneWireMaster::Success)
+ if (OWReadRom(ds2465, romId) != OneWireMaster::Success)
return UnableToCommunicate;
ds28e15_22_25.setRomId(romId);
MAXREFDES143#: DeepCover Embedded Security in IoT Authenticated Sensing & Notification