C++ Wrapper around the IBM LMiC LoRaWAN implementation
Diff: Node.h
- Revision:
- 6:a93e81aa299d
- Parent:
- 2:6fac10decfb3
--- a/Node.h Fri Jul 01 10:54:18 2016 +0000 +++ b/Node.h Sun Sep 04 11:06:02 2016 +0000 @@ -27,9 +27,13 @@ #include "lmic.h" #include "stdint.h" +#include <functional> + namespace SimpleLoRaWAN { + + class Node { public: @@ -38,6 +42,9 @@ void send(char* data, int size); static void onEvent(ev_t ev); void process(); + + template<typename Function> + void onTest(Function handler); private: void init();