MySensors Library & Examples  2.3.2
MyProtocol.h
1 /*
2  * The MySensors Arduino library handles the wireless radio link and protocol
3  * between your home built sensors/actuators and HA controller of choice.
4  * The sensors forms a self healing radio network with optional repeaters. Each
5  * repeater and gateway builds a routing tables in EEPROM which keeps track of the
6  * network topology allowing messages to be routed to nodes.
7  *
8  * Created by Henrik Ekblad <[email protected]>
9  * Copyright (C) 2013-2019 Sensnology AB
10  * Full contributor list: https://github.com/mysensors/MySensors/graphs/contributors
11  *
12  * Documentation: http://www.mysensors.org
13  * Support Forum: http://forum.mysensors.org
14  *
15  * This program is free software; you can redistribute it and/or
16  * modify it under the terms of the GNU General Public License
17  * version 2 as published by the Free Software Foundation.
18  */
19 
20 #ifndef MyProtocol_h
21 #define MyProtocol_h
22 
23 #include "MySensorsCore.h"
24 
25 // parse(message, inputString)
26 // parse a string into a message element
27 // returns true if successfully parsed the input string
28 bool protocolSerial2MyMessage(MyMessage &message, char *inputString);
29 
30 // Format MyMessage to the protocol representation
31 char *protocolMyMessage2Serial(MyMessage &message);
32 
33 #endif
MyMessage is used to create, manipulate, send and read MySensors messages.
Definition: MyMessage.h:289