Commit Graph
822 Commits
Author SHA1 Message Date
Patrick Fallberg 2d93722692 Merge pull request #399 from tbowmo/samd
Adapts RFM69 to be used with SAMD
2016-02-16 09:45:13 +01:00
Henrik Ekblad f9d23c9c69 Merge pull request #394 from tekka007/conditionalWait
Implementation conditionalWait()
2016-02-13 12:43:28 +01:00
Jan Chrillesen bda6ecf017 Add yield() in sendACK
Needed on ESP8266 to avoid WDT kicking in - see http://forum.mysensors.org/topic/2278/esp8266-gateway-and-sensor-node-not-talking-noobie/34
2016-02-13 09:28:47 +01:00
tekka007 a876b320bc Implement conditional Wait() until time passed or specific message received 2016-02-11 22:14:35 +01:00
Patrick Fallberg 1f27c3dd36 Update library.json version to 1.5.4 2016-02-07 13:08:21 +01:00
Patrick Fallberg 350bf568fb Merge pull request #386 from mysensors/add-optional-before-method
Add before() for initialisations before radio hogs SPI
2016-02-06 21:01:55 +01:00
Patrick Fallberg 72a40d69df Merge pull request #388 from mysensors/turn-off-access-point-on-wifi-mqtt
Turn off access point when running ESP8266 MQTT client
2016-02-06 21:01:39 +01:00
Henrik Ekblad 748e3ee4b7 Sketch shouldn't have UDP enable by default 2016-02-06 19:30:52 +01:00
Henrik Ekblad 3b18b2959c Turn off access point when running ESP8266 MQTT client
Fixes: https://github.com/mysensors/Arduino/issues/366
2016-02-06 17:37:55 +01:00
Henrik Ekblad d819af40b7 Fix compile problems when enabling UDP
Using 
#define MY_USE_UDP 
Failied building on AVR (only worked on ESP)

Fixes https://github.com/mysensors/Arduino/issues/369
2016-02-06 17:21:44 +01:00
Henrik Ekblad 469cbb7d0c Add before() for initialisations before radio hogs SPI
Fix #293
2016-02-06 12:08:28 +01:00
zaphodus ce93db7351 Resend presentation if client connected
This change solve the problem described  here:
http://forum.mysensors.org/topic/2112/n00b-ethernet-gw-without-nf24

The presentation must be resent when the client connects. Without this Domoticz catches only sensor data, and doesn't know about connected actuators.
2016-02-03 18:09:44 +01:00
Patrick Fallberg 5be0e2e3b5 Merge pull request #365 from ivankravets/patch-2
Fix version to stable
2016-02-02 16:14:49 +01:00
Henrik Ekblad 3c4954ecee Merge pull request #377 from fallberg/lockdown
Node lock feature
2016-01-30 14:45:10 +01:00
fleinze f6531cfa13 Compatibility with atmega32U4 (Arduino micro)
For atmega32U4-boards USBDevice.init(); must not be called. This is only necessary for SAMD-boards.
With this patch the library works fine with an arduino micro board.
2016-01-30 11:46:09 +01:00
Patrick Fallberg 7de2764d2d Node lock feature
When activated, suspicious signing related activities will eventually
cause the node to lock down and transmit a I_LOCKED message to the
gateway at 30m intervals.
Unlocking is done by grounding a pin or erasing the EEPROM.
See Doxygen for details on use.
Fixes #280
2016-01-29 11:41:53 +01:00
mboyer85 8fede4dc4a Merge branch 'development' into development 2016-01-28 19:40:32 +01:00
Thomas Mørch b4dadc2ce2 Adapts RFM69 to be used with SAMD 2016-01-28 13:43:47 +01:00
Henrik Ekblad 242d0a94ee Corrected the channel selection #372 2016-01-27 20:33:46 +01:00
Henrik Ekblad 4002636168 Controller Config read twice #363 2016-01-27 20:29:01 +01:00
Henrik Ekblad e95b75e062 Added ability to connect to mqtt server by url. Fixed mqtt client
connect bug. #355
2016-01-27 20:25:52 +01:00
Henrik Ekblad 0d4efb167e Fix led typo for led pins #347 2016-01-27 19:41:41 +01:00
Henrik Ekblad a60092e3a8 Fix mqtt client when using dhcp #355 2016-01-27 19:39:36 +01:00
mboyer85 b6de017bb6 Rename libraries/MySensors/examples/PHSensor.ino to libraries/MySensors/examples/PHSensor/PHSensor.ino 2016-01-27 19:26:07 +01:00
mboyer85 6aa1fb6e88 Adding water quality management
PHSensor example
2016-01-27 19:25:04 +01:00
mboyer85 9fc81a327d Adding water quality management 2016-01-27 18:27:55 +01:00
mboyer85 8f08db4d4b Adding Water Quality
For pool/aquarium water management
2016-01-27 18:23:09 +01:00
Ivan Kravets 8015ad4800 Fix version to stable 2016-01-21 00:54:38 +02:00
Patrick Fallberg 15167d69e8 Support building test sketches for ESP8266 2016-01-20 22:29:38 +01:00
Patrick Fallberg 4a5c0f9314 Make ESP8266 sketches explicitly declare GW
In order to build core tests, there cannot be any hard coded
GATEWAY flags (like MY_GATEWAY_ESP8266). These needs to be set
in the sketch that implements the gateway.
2016-01-20 22:07:45 +01:00
Patrick Fallberg 94c7f4451e Resolved Doxygen warnings relating to signing 2016-01-20 22:04:19 +01:00
Patrick Fallberg 842d575fc5 Implemented signing test sketches
These will automatically be built for every PR by Jenkins.
The test sketches in this commit evaluates signing (hard/soft) and
whitelisting (on/off). Full verbose signing debug is enabled.
RF24 radio is also enabled.
2016-01-20 20:51:58 +01:00
Patrick Fallberg dcb5cc9928 Cleaned up Doxygen include graphs 2016-01-19 23:56:28 +01:00
Patrick Fallberg 0f55969ace Cleaned up Doxygen warnings in library drivers 2016-01-19 23:56:27 +01:00
Patrick Fallberg 877cac266f Cleaned up Doxygen warnings in examples 2016-01-19 23:56:27 +01:00
Patrick Fallberg 5853cf5fe0 Cleaned up Doxygen warnings in libraries/MySensors/drivers/AVR 2016-01-19 23:56:26 +01:00
Patrick Fallberg 44b52f10be Cleaned up Doxygen warnings in MyConfig.h 2016-01-19 23:56:26 +01:00
Patrick Fallberg 0683709506 Cleaned up Doxygen warnings in libraries/MySensors/core 2016-01-19 23:56:25 +01:00
Patrick Fallberg 6b6e829f93 Make sure signing presentation data is sent correctly
The message sender was retrieved from the message buffer after
prepareSigningPresentation() was called. This function resets
the message buffer so that is not the proper way to do it. Now,
the message sender is extracted first in signerProcessInternal()
in order to avoid the value being overwritten later on.
2016-01-19 09:17:18 +01:00
Gert Sanders e52ae4f3a7 Adding SMS Gateway node example and supporting library.
Adding SMS Gateway node example and supporting library (Adafruit FONA).
2016-01-17 15:00:26 +01:00
Kolbi 8840e39040 Merge branch 'development' into patch-2 2016-01-14 15:25:03 +01:00
Thomas Mørch eacac55be0 Moved includes for MyLeds.* to be after the default assignments for LED's 2016-01-13 19:28:45 +01:00
Thomas Mørch c4adcccbdc Moved default LED initialization from MyConfig.h to MySensors.h 2016-01-13 19:28:45 +01:00
Marco Noord 9858cb19f0 Changed digitalwrite to pinmode, to make it more obvious what is happening here, and to offer more support within the Arduino API 2016-01-13 17:57:48 +01:00
Marco Noord a6569c884a Use the internal pullup to be able to hook up this sketch directly to an energy meter with S0 output
If no pullup is used, the reported usage will be too high because of the floating pin
2016-01-13 17:19:59 +01:00
Kolbi 3c634db77c Merge branch 'development' into patch-2 2016-01-13 08:44:47 +01:00
Patrick Fallberg c52d2cd643 All software security related data moved to EEPROM
The Sha204Personalizer has been converted to a SecurityPersonalizer.
It takes care of generation and storage of keys and data to both
ATSHA204A and nonvolatile storage (EEPROM).
Library has been updated to read any software security related data
from the corresponding EEPROM locations.

The effect this has is that any node using any security feature has to
execute the personalizer at least once to store appropriate values.
The benefit of this is that the software no longer contain sensitive data
such as HMAC or AES keys.
Whitelists still are stored in software as they are variable in size.
2016-01-12 10:26:58 +01:00
Patrick Fallberg 3bf9184670 Removed signing identifier from nonces
It serves no practical use to have signing identifier in nonces
as nonces are architecture independent.

Fixes #318
2016-01-12 08:43:11 +01:00
Patrick Fallberg 58dbc2ad27 MY_DEBUG_VERBOSE_SIGNING flag implemented
This enables more verbose debug information for signing operations.

Fixes #319
2016-01-12 08:43:10 +01:00
Patrick Fallberg ff015dd373 Signing whitelisting rewritten
Whitelisting is now supported by all nodes that support signing,
while only nodes that define a whitelist with
MY_SIGNING_NODE_WHITELISTING will check signatures against a whitelist.
This allows a single node in a network to have a whitelist without require
all nodes that communicate it to be configured for whitelisting. The node
will publish its whitelisting preferences to the gateway together with its
signing preferences. In other words; whitelisting is now working as signing
requirements does.
A node that use whitelisting will reject any message (signed or unsigned)
from nodes not present in its whitelist.

Fixes #279
2016-01-12 08:41:55 +01:00