Commit Graph

21 Commits

Author SHA1 Message Date
078765c06a changed on pairing stuff 2019-04-17 21:41:37 +02:00
Marcel Schulz
5f8bd87214 Did some corrections in BME280 example. 2018-02-11 14:15:21 +01:00
Marcel Schulz
9b632383a8 Removed self made ack handling. Now it seems to work very stable. 2018-02-11 14:14:40 +01:00
Marcel Schulz
5f809c2aa0 Did some changes in header include structure, because the library was not compiling successfully after extracting code to SBDevice.cpp. 2017-12-15 14:06:14 +01:00
Marcel Schulz
9c7ad75225 Changed a filename Dvecie.cpp > SBDevice.cpp.
Increased the version number.
2017-12-15 13:58:18 +01:00
Marcel Schulz
a0cb35706c Changed the library to not use AutoAcknowledge so that an analysis of the network can not be done by a simple trying to ping a device/master. The master must be paired to a device before he sends any ACK package or must enable new slaves to answer to a MASTER_SEARCH Request. The AutoAcknowledge feature would automatically send an ACK package which makes the master and any other device directly visible.
Be aware that this feature does not prevent a devices for being detected by sniffing the radio traffic, because the normal data traffic is still there and not encrypted in any way. An Encryption would hide the sender address. This would make it again more difficult to copy a sender address and simulate a paired device. (This is stikk possible now). But again, this will come later, maybe!
The best solution is to implement an encryption feature at a higher communication layer.
2017-12-15 13:55:09 +01:00
Marcel Schulz
21e31893f2 Did some corrections regarding the new ping method. Now everything should work as mentioned. 2017-12-15 00:03:49 +01:00
Marcel Schulz
bb6da7e5d7 Did some changes in ping process. A ping now must get an answer from the destination device, otherwise the ping returns false. The master device now must be available and must know the device as a slave before it answers with a return ping. This prevents a slave to send data to master but the master doesn't know the slave (maybe because of a reset). This makes finding errors much easier than before. 2017-12-14 23:38:46 +01:00
Marcel Schulz
b73eff4bec Increased version to 1.0.2 in library.properties. 2017-12-12 21:54:40 +01:00
Marcel Schulz
ce8133b817 Minor changes and corrections in debug logs and example sketches. 2017-12-12 21:51:50 +01:00
Marcel Schulz
4815cc7f02 Put some const char* into F() Makro.
Cleaned up some debug messages.
Standard mode now is non debug.
2017-12-11 01:02:26 +01:00
Marcel Schulz
bf01311e36 Added Automatic client adding enable/disable feature.
Added a function to get the mac of the device of the last received message.
2017-12-10 23:54:23 +01:00
Marcel Schulz
fb1c6f7fb4 Changed the comments in the example sketches. 2017-11-22 00:23:53 +01:00
Marcel Schulz
9944f45603 Changed the examples to run with the new lib architecture. Only some comments and the constructor to create a new networkDevice were changed. 2017-11-21 23:51:58 +01:00
Marcel Schulz
a99d91c30b Changed the lib architecture. Now you don't need to change a define in the SBNetwork_config.h to change the device type from Master to Client. You can do this in the constructor ob SBNetwork class. The code get a little bit bigger now, because the lib always compiles for both master and client device. But it is definitively better to use now. 2017-11-21 23:50:29 +01:00
Marcel Schulz
1128d8c3c4 Added two examples UniversalSensorMaster.ino and BME280_Client.ino 2017-11-20 22:14:52 +01:00
Marcel Schulz
28f7ce0fc4 Deleted SBSensors_config.h 2017-11-20 17:07:49 +01:00
Marcel Schulz
35b56c80c9 Added LICENSE file. 2017-11-20 16:59:21 +01:00
Marcel Schulz
0c8e8582b9 Added sources, library properties and example code. 2017-11-20 16:54:06 +01:00
Marcel Schulz
b11766a5cf Some changes 2017-11-19 21:32:03 +01:00
Marcel Schulz
9ea6d1ce26 Added Readme.md 2017-11-19 20:33:45 +01:00