Commit Graph
935 Commits
Author SHA1 Message Date
Marcelo Aquino 2315e2d62c Merge branch 'development' into dev-raspberrypi 2016-08-16 13:42:41 -03:00
aaron832 79c263291b Save eeprom config data to file
hwWriteConfig and hwReadConfig now use hwWriteConfigBlock and
hwReadConfigBlock calls for simplicity.
2016-08-16 13:37:36 -03:00
aaron832 ad978196f9 Use iostream for min, max functions
Use iostream for min, max functions as well as for reading / writing to
file.
2016-08-16 12:00:43 -03:00
aaron832 e9a50586ff Move MQTT to message parsing
Move MQTT to message parsing into MyProtocolMySensor.cpp to be common
amongst all MQTT client implementations.
2016-08-16 11:59:57 -03:00
aaron832 b880a745fe Initial implementation of MQTT
Initial implementation of MQTT alongside ethernet gateway.
2016-08-16 11:59:27 -03:00
aaron832 b50a651e5e Reform definition logic
Reform definition logic to allow MY_GATEWAY_MQTT_CLIENT along side
MY_GATEWAY_FEATURE as there was some redundancy.

Add some specific exclusions for Linux implementation of MQTT.
2016-08-16 11:58:34 -03:00
aaron832 4b0664be5c Add MQTT topic generation
Add MQTT topic generation to the protocol definition file.
2016-08-16 11:57:59 -03:00
Marcelo Aquino 35cab8c26d Add support for RaspberryPi 2016-08-08 01:28:18 -03:00
Thomas Mørch ba6bb915c2 Reorganizing library structure, prep for 2.0.0 2016-07-09 21:17:37 +02:00
Thomas Mørch 4811eb5573 Added return value for atsha204_getSerialNumber (#487)
Also cleaned up trailing whitespaces.
2016-07-09 15:08:40 +02:00
Olivier 1eabe506cf Fix to prevent sending msgs where signing failed (#503) 2016-07-08 09:36:56 +02:00
Olivier d9316d1b6a Fix MyTransport compiler if no radio defined (#502) 2016-07-06 01:16:04 +02:00
Josh Cox 255040749c Uniquifying LIBRARY_VERSION
Making MYSENSORS_LIBRARY_VERSION for
purposes of being more unique and
preventing conflict with other libraries
that chose the same
LIBRARY_VERSION like PID_v1 a fairly
common arduino library.  Of note, I
have also raised the issue
with that library as well
2016-07-04 22:24:40 -05:00
Olivier 2279dc11a0 Minimize FindParent collisions and minor tweaks (#501) 2016-07-04 17:37:04 +02:00
Olivier 751a5dcfb8 Fix possible transport deadlock, add sanity check (#500) 2016-07-04 15:08:41 +02:00
Olivier 77bb94c16f Cleanup MyGatewayXXX and fix MQTT (#497) 2016-07-02 11:01:50 +02:00
Olivier 60495eaf5c Add new internal commands to exception list (#499) 2016-07-01 16:54:32 +02:00
Olivier ff8982148f Improve radio fail state check (#498) 2016-07-01 14:29:57 +02:00
Olivier 0a26d857aa Reshuffle gatewayTransportInit() (#496) 2016-07-01 00:08:53 +02:00
Olivier 91af9b1730 Reintroduce loop() in loop_wrapper() (#495) 2016-06-30 23:07:07 +02:00
Olivier a2ab505cb1 Fix compiler warnings in MyMessage.h (#494) 2016-06-29 22:39:51 +02:00
Olivier a41a08b438 Fix Wire.h include (#493) 2016-06-29 19:30:09 +02:00
Thomas Mørch 321e217e0b Boolean should be bool (#492)
Standard c++ is to use type bool, not boolean
2016-06-29 19:29:46 +02:00
Patrick Fallberg e086ba3203 Merge pull request #486 from tekka007/ESPCoreFix
Update MyMainESP8266 to compile with ESPlib 2.3.0
2016-06-28 19:00:10 +02:00
Olivier d15b4f6471 Fix deadlock in stIDUpdate() (#490) 2016-06-28 00:01:04 +02:00
Henrik Ekblad a62d9d7f5c Merge pull request #483 from tekka007/transportUpdate
TransportProcess cleanup
2016-06-26 20:21:04 +02:00
Olivier 24a03507f1 Fix compiling error with ESPlib 2.3.0 2016-06-26 15:12:46 +02:00
Olivier 26044e16f8 TransportProcess cleanup 2016-06-26 11:27:37 +02:00
Olivier 244f79771a Expose RF24 functions (#484) 2016-06-25 20:12:36 +02:00
Patrick Fallberg 0379330569 Update documentation with signing troubleshooting 2016-06-21 20:45:26 +02:00
Patrick Fallberg 012de4496f Added some RF-related debug prints in signing code
If a failed transmsission is detected, a debug print will give
a hint to why the signing session fails.
2016-06-21 20:34:57 +02:00
Thomas Mørch be92707cc6 Renamed MySensor.h -> MySensors.h (#481)
* Renamed MySensor.h -> MySensors.h

Replaced all references to MySensor.h in examples with MySensors.h

* MySensorCore.* renamed to MySensorsCore.*

This should make it comply more with naming standards

* Updated reference to MySensors core lib
2016-06-21 07:51:51 +02:00
Patrick Fallberg ea0e30683a Merge pull request #477 from tekka007/StaticENUMS
Define static enums in MyMessage
2016-06-20 20:35:00 +02:00
Olivier c6125a4b51 Define static enums in MyMessage 2016-06-20 19:13:46 +02:00
Thomas Mørch 351e015996 LED PIN defines was missing _PIN in their names
fixes #409
2016-06-19 22:00:44 +02:00
Thomas Mørch 1075875cf3 Version number didn't match library.properties 2016-06-19 21:55:38 +02:00
Olivier f1319fc392 Add return value to wait() 2016-06-15 21:19:02 +02:00
Olivier c58032c7aa Speedup signing presentation phase 2016-06-13 22:36:20 +02:00
gizmocuz 1c7385f1f1 Fixed Voltage Sending in Sensebender 2016-06-13 07:40:38 +02:00
Olivier c1c37b0dec Fix sending buffer in MySigning.cpp 2016-06-12 21:47:01 +02:00
Patrick Fallberg cd5c243f7b Handle inbound and outbound nonces simultaneously
Two separate buffers are used for nonce storage. One for the
nonce used for signing a message and one for the nonce used
for verifying a message.
2016-06-12 15:37:45 +02:00
Patrick Fallberg a0615b53a2 Make test sketches only set IO if not set in board
If a specific board is picked, some IO will be preconfigured
and should not be overridden by a sketch.
2016-06-12 15:37:45 +02:00
Patrick Fallberg 0a8aaedf8b Optimize ATSHA204 respose times
Instead of shutting down the ATSHA between calls in a session,
it is put in idle state. This removes the need for a full resync
when the device is woken and that saves time which translate to
a quicker turnaround time for signed messages with HW signing.
To save power, it is still shut down when not in use.
2016-06-12 15:37:45 +02:00
Patrick Fallberg a5b0e8d8bb Purge ATSHA204 backend of c++ code
There is no need for class structures in the atsha low-end driver.
Removing this saves both code space and compilation time.
2016-06-12 15:37:45 +02:00
Patrick Fallberg b01282c7c7 Improve nonce generation in signing backends
For atsha204, update seed every time and only extract
the full 32-byte random value once.
For both atsha204 and soft backends, XOR all random bytes
with hwMillis() in order to "whiten" the random value a bit.
2016-06-12 15:37:45 +02:00
Olivier 2d3b945197 Fix MyIndication definitions 2016-06-12 14:57:57 +02:00
Embedded Innovation 27ece9c3c5 Added power metering variables 2016-06-08 20:25:26 +02:00
Embedded Innovation e0e78a6bae Add library status indication & improve error LED feedback (#462)
* Added MyIndication to provide status feedback from the library

* Fix: Allow led blinking for hardware errors

* Refactor LED blinking implementation to show blink patterns

* Refactor LED blinking to show blink pattern
2016-06-06 18:43:42 +02:00
tekka007 cb4254d122 Add support for I_DEBUG messages 2016-06-01 23:40:52 +02:00
Henrik Ekblad a74a2d5deb Merge pull request #456 from tekka007/MyOTAFirmwareUpdate
Refactor OTA update code
2016-06-01 21:44:20 +02:00