summaryrefslogtreecommitdiffstats
path: root/src/device/protocol_device.ino
Commit message (Collapse)AuthorAgeFilesLines
* Protocol: fixed type errors.Gravatar Ramūnas Mažeikis 2019-05-221-1/+1
| | | | | | | Added const where appropriate to satisfy stricter type checking of C++. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
* Merge branch '31-Net-Protocol-Handling'.Gravatar Ramūnas Mažeikis 2019-05-221-0/+0
|\ | | | | | | Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
* | Protocol: switched files to C++ and did minor fixes.Gravatar Ramūnas Mažeikis 2019-05-221-0/+102
|/ | | | | The code has a chance to compile now. No changes to actual build files yet.
* Protocol: implementation of device-side protocol.Gravatar Ramūnas Mažeikis 2019-05-211-38/+0
| | | | | | | | | Parts of protocol specific for device are implementepd to reflect the fact that the device is a client. This effectively means that device gets a single connection only and severe memory restrictions about which the daemon might get informed about in the future. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
* Protocol: changes to interface and some re-implementation.Gravatar Ramūnas Mažeikis 2019-05-211-0/+38
Most functions exposed in protocol.h take a connection descriptor (cd_t) as first argument. This allows for multiple connections. Device gets only one connection which means that cd_t is effectively 0 all the time. Additionaly, any function that actually does anything with a connection descriptor instead of just passing it to another function must be implemented separately in device and daemon. Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>