Commit Graph
1542 Commits
Author SHA1 Message Date
Marcelo Aquino 768b70e882 Fix conflicts with arduino macros and stdlib 2016-08-16 13:43:19 -03:00
Marcelo Aquino c4b2a809aa Move init system detection to configure 2016-08-16 13:43:17 -03:00
Marcelo Aquino 9132e7a42a Exit immediately when receiving a signal 2016-08-16 13:43:16 -03:00
Marcelo Aquino beb29aa0b1 Merge branch 'development' into dev-raspberrypi 2016-08-16 13:43:14 -03:00
Marcelo Aquino 899f992d11 Fix Doxygen preprocessor variable
* Fix build error when not using RF24 interrupt pin
2016-08-16 13:42:54 -03:00
Konst Kolesnichenko 43e5a7ddf9 Fixed build error 2016-08-16 13:42:53 -03:00
Marcelo Aquino 6b756335d0 Refactor RaspberryPi port 2016-08-16 13:42:51 -03:00
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
Henrik Ekblad dc99e8a8d4 Merge pull request #550 from tekka007/MySensorsBegin
Add debug output if before() and setup() called
2016-08-09 21:14:14 +02:00
tekka007 e9b1ab287c Add debug output for before() and setup() 2016-08-09 21:03:18 +02:00
Henrik Ekblad e1ccba22d8 Merge pull request #549 from tekka007/RenameMacroParams
Rename macro param (_msg) to avoid confusions
2016-08-09 20:53:21 +02:00
tekka007 a1a5d0d707 Rename macro param (_msg) to avoid confusions 2016-08-09 12:07:23 +02:00
Henrik Ekblad 67e720394e Merge pull request #548 from tekka007/UseMsgTmp
Use _msgTmp to build messages
2016-08-09 09:12:17 +02:00
Henrik Ekblad c85de960d4 Merge pull request #547 from tekka007/MyMessageUpdate
Set protocol version in MyMessage::clear()
2016-08-09 09:11:52 +02:00
Henrik Ekblad 00688b0f29 Merge pull request #546 from tekka007/MessageTypeNames
Harmonize message type names
2016-08-09 09:11:40 +02:00
tekka007 6bc4a374ed Use _msgTmp when building messages 2016-08-08 19:49:18 +02:00
tekka007 de896e1827 Set protocol version in MyMessage::clear() 2016-08-08 17:54:05 +02:00
tekka007 e7682cf006 Harmonize message type names 2016-08-08 17:37:42 +02:00
Henrik Ekblad 2d7b1a87b8 Merge pull request #544 from mfalkvidd/development
Use bool instead of boolean in examples
2016-08-08 09:47:19 +02:00
Marcelo Aquino 35cab8c26d Add support for RaspberryPi 2016-08-08 01:28:18 -03:00
Martin Hjelmare d054c1c0c8 Update doxygen docs with new smartSleep behavior (#545)
* Update doxygen docs with new smartSleep behavior

* Update docs to new behavior.
* Add info on how to set wait time in smartSleep.
* Fix incorrect docs regarding return value of smartSleep.

* Update docs for return value of all sleep methods

* Clarify the return value of the sleep methods, suggested by
  @mfalkvidd.
2016-08-06 14:39:12 +02:00
Mikael Falkvidd git@mjo.se 858b80b6a4 Use bool instead of boolean in examples
In the Arduino IDE, boolean is an alias for bool.
The Arduino IDE might deprecate boolean in the future, see
https://github.com/arduino/Arduino/issues/4673 for details.
2016-08-06 12:03:22 +02:00
Henrik Ekblad 7465308df3 Merge pull request #542 from tekka007/ParentNode
Verify MY_PARENT_NODE_ID if parent is set static
2016-08-06 10:19:46 +02:00
Henrik Ekblad 3ea644f25c Merge pull request #543 from tekka007/Keywords
MySensor keyword obsolete
2016-08-06 10:18:42 +02:00
tekka007 6bc113208c MySensor keyword obsolete 2016-08-06 09:13:38 +02:00
tekka007 c5c8c92755 Verify MY_PARENT_NODE_ID if parent is set static 2016-08-06 00:14:19 +02:00
Embedded Innovation 6bdde5b1ac Add missing GOT_PARENT indication (#541)
* Add missing GOT_PARENT indication

* Fix tabs
2016-08-05 18:37:17 +02:00
Thomas Mørch 29c7c0c042 Merge pull request #540 from Yveaux/development
Correctly initialize MyMessage
2016-08-05 13:29:16 +02:00
Embedded Innovation 5d7f2fe38b Fix delegating constructor 2016-08-05 12:41:53 +02:00
Embedded Innovation 7d84878cb0 Correctly initialize MyMessage 2016-08-05 12:18:24 +02:00
Patrick Fallberg 3519558703 Merge pull request #536 from tbowmo/preHwInit
Added default sketch for sensebender samd GW
2016-08-04 00:10:14 +02:00
Thomas Mørch 88e37e3675 Disabled inclusion button defines
As they can be present in HW Variant files, so to
minimize risk of warnings they are not enabled
2016-08-03 22:48:03 +02:00
Thomas Mørch 3ba13f1c8c Added production SensebenderGW sketch
preHwInit also added to hook into core startup
before hwInit is called
2016-08-02 23:39:18 +02:00
Martin Hjelmare b293f47a7f Fix smartsleep (#535)
* Make smartSleep send heartbeat before sleeping

Sending the heartbeat (and waiting) after waking up would delay
processing inputs. For example, a switch could be back to the
open state before the wait is over.

* Fix typos in comments in smartSleep methods
2016-08-02 22:21:14 +02:00
Embedded Innovation 99973a346e Add nRF24 receive message buffering (#538)
* Add critical section support

Allows defining a code block which is executed as a critical section.
Supports AVR, ESP8266 & SAMD.

* Add receive message buffering

When MY_RF24_IRQ_PIN is defined (and connected), a buffer will be used
to retrieve & store messages received by nRF24 as fast as possible.
This reduces the chance of losing messages due to a busy
microcontroller.
nRF24 SPI rx message transfer is running from interrupt context when
MY_RF24_IRQ_PIN is defined. If this transfer takes too long, serial
characters received will get lost. Therefore serial rx is enabled during
SPI transfer of nRF messages.

Limitations: Only AVR/SAMD & nRF24L01+ combinations can buffer rx
messages.
nRF24L01+ IRQ pin should be connected to AVR.
Tested on W5100- & Serial-gateway.

SAMD has not been tested yet!

* Fix Doxygen warnings

* Fix more Doxygen warnings
2016-08-02 22:20:25 +02:00
Olivier 4695cc71dd Fix Doxygen warning (#539) 2016-08-02 21:50:00 +02:00
Henrik Ekblad 37119b2a3a Present locally attached sensors and node when missing radio (#532)
* Present locally attached sensors and node when missing radio

Fix #524

* Combining gateway and node presentation.
2016-08-01 23:59:31 +02:00
Henrik Ekblad e475be2980 Merge pull request #533 from tekka007/TransportUpdate
Fix compatibility issue with nRF clones, update documentation
2016-08-01 23:58:57 +02:00
Henrik Ekblad 74556d2d2d Merge pull request #526 from tekka007/CoreDebugMessages
Cleanup debug messages in MySensorsCore
2016-08-01 23:54:12 +02:00
Henrik Ekblad b8e898c0ad Make the library.properties up-to-date (#534) 2016-08-01 22:16:50 +02:00
tekka007 ce61b286d5 Cleanup debug messages in MySensorsCore 2016-08-01 14:51:56 +02:00
tekka007 26f20b0e3b Fix compatibility issue with nRF clones, update documentation 2016-08-01 14:10:47 +02:00
Patrick Fallberg 4c0b7d6d02 Merge pull request #531 from henrikekblad/FixMQTTPresentation
Fix #449, Fix #507
2016-07-31 15:46:30 +02:00
Henrik Ekblad ba6fae7596 Fix #449, Fix #507 2016-07-31 15:25:55 +02:00