-
Notifications
You must be signed in to change notification settings - Fork 0
/
RF24SensorNet_info.cpp
53 lines (43 loc) · 986 Bytes
/
RF24SensorNet_info.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
RF24SensorNet
A library for sending standard sensor and actuator
messages between nodes connected using RF24Network.
Handling for info packets - basic node information.
--
Peter Hardy <[email protected]>
*/
#ifndef __RF24_SENSOR_NET_INFO_H__
#define __RF24_SENSOR_NET_INFO_H__
#if ARDUINO < 100
#include <WProgram.h>
#else
#include <Arduino.h>
#endif
#include "RF24Network.h"
#include "RF24SensorNet.h"
#include "RF24SensorNet_types.h"
void RF24SensorNet::addInfoReadHandler(infoReadHandler handler)
{
_infoReadHandler = handler;
}
void RF24SensorNet::addInfoWriteHandler(infoWriteHandler handler)
{
_infoWriteHandler = handler;
}
void RF24SensorNet::addInfoRcvHandler(infoRcvHandler handler)
{
_infoRcvHandler = handler;
}
bool RF24SensorNet::readInfo(uint16_t toAddr)
{
return true;
}
bool RF24SensorNet::writeInfo(uint16_t toAddr, uint16_t newAddr)
{
return true;
}
bool RF24SensorNet::sendInfo(uint16_t toAddr)
{
return true;
}
#endif