Commit Graph
1300 Commits
Author SHA1 Message Date
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
Henrik Ekblad 4b90e15beb Merge pull request #364 from fallberg/test-sketches
Implemented signing test sketches
2016-01-21 22:01:53 +01: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 5a16cf0b5e Merge pull request #359 from fallberg/doxygen
Cleaned up Doxygen warnings
2016-01-20 01:06:50 +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 92f6585a90 Merge pull request #358 from fallberg/sign-fix
Make sure signing presentation data is sent correctly
2016-01-19 23:46:40 +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
Henrik Ekblad 74ef56bf58 Merge pull request #354 from GertSanders/development
Adding SMS Gateway node example and supporting library.
2016-01-17 16:33:42 +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
Patrick Fallberg f6d482d4ce Merge pull request #333 from Kolbi/patch-2
Update HumiditySensor.ino
2016-01-15 11:16:39 +01:00
Kolbi 8840e39040 Merge branch 'development' into patch-2 2016-01-14 15:25:03 +01:00
Patrick Fallberg e966366968 Merge pull request #339 from tbowmo/samd
Fixes problem with MY_LED_BLINKING_FEATURE being enabled on all builds
2016-01-13 20:53:30 +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
Thomas Mørch c1ceeccc6b Changed name for SPI the last couple of places 2016-01-13 19:28:45 +01:00
Patrick Fallberg 1f365342c2 Merge pull request #342 from marcovannoord/development
Use the internal pullup to be able to hook up this sketch directly to S0 meters
2016-01-13 19:08:57 +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 74a54267d2 Merge pull request #305 from fallberg/signing_refactoring
Signing improvements
2016-01-12 17:08:43 +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
Patrick Fallberg 5ecf146f15 Sha256 calculator for library use
The signing infrastructure now supports calculating sha256.
This feature does not require signing support to be activated.
Fixes #315
2016-01-12 08:41:54 +01:00
Patrick Fallberg 02fbe536d4 Signing infrastructure refactored
Signing logic has now been centralized to MySigning.cpp in order to simplify
maintenance and debugging.
Debug prints have been extended and "demoted" to verbose level.
To get signing related debug info, MY_DEBUG_VERBOSE will need to be defined.
This fixes #278
2016-01-12 08:41:54 +01:00
Patrick Fallberg b64f676316 Merge pull request #325 from tekka007/ClearConfig
HW-independent ClearEepromConfig, substitutes #314
2016-01-11 23:41:00 +01:00
tekka007 b4879f0dce void unused parameter 2016-01-11 21:47:18 +01:00
tekka007 7749060ee7 Added MY_CORE_ONLY flag to MySensors.h 2016-01-11 21:27:40 +01:00
tekka007 866e7cf08b HW-independent ClearEepromConfig, substitutes #314 2016-01-11 21:12:59 +01:00
Henrik Ekblad 60318a702d Merge pull request #331 from fallberg/2.0-beta
Bumped version to 2.0.0-beta
2016-01-10 23:23:11 +01:00
Patrick Fallberg 91985beb9d Bumped version to 2.0.0-beta
Considering the magnitude of the delta between master and
development branch currently, 2.0.0-beta apperas to be a
more realistic version than 1.6.0-beta.
2016-01-10 12:52:07 +01:00
Kolbi 1b09787b79 Update HumiditySensor.ino 2016-01-08 16:53:18 +01:00
Patrick Fallberg cee1dd3a4e Merge pull request #323 from tbowmo/samd
LED HW definitions in arduino HW files overridable
2016-01-07 23:43:59 +01:00
Thomas Mørch 08234e9495 corrected typo 2016-01-07 21:39:06 +01:00
Thomas Mørch 5cd809e473 LED HW definitions in arduino HW files overridable 2016-01-07 21:39:06 +01:00
Patrick Fallberg 3e0e4d601b Merge pull request #327 from Br3nda/patch-1
spelling correction in esp8266 example sketch
2016-01-07 15:45:22 +01:00
Brenda Wallace f36125eee6 spelling correction in esp8266 example sketch 2016-01-06 12:49:50 +13:00
Henrik Ekblad 0ebaced5f2 Merge pull request #324 from tekka007/nullTerminationFix2
Null termination issue, Fixes #322
2016-01-05 13:08:04 +01:00
tekka007 39407e4ae4 Null termination issue, Fixes #322 2016-01-05 12:36:24 +01:00