Skip to content

Commit be92707

Browse files
tbowmotekka007
authored andcommitted
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
1 parent 22ce382 commit be92707

File tree

78 files changed

+95
-95
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+95
-95
lines changed

libraries/MySensors/MySensor.h renamed to libraries/MySensors/MySensors.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
*/
1919

2020
/**
21-
* @file MySensor.h
21+
* @file MySensors.h
2222
*
2323
* MySensors main interface (includes all necessary code for the library)
2424
*/
25-
#ifndef MySensor_h
26-
#define MySensor_h
25+
#ifndef MySensors_h
26+
#define MySensors_h
2727

28-
#include "core/MySensorCore.h"
28+
#include "core/MySensorsCore.h"
2929

3030
// Detect node type
3131
/**
@@ -290,7 +290,7 @@
290290

291291
#include "core/MyCapabilities.h"
292292
#include "core/MyMessage.cpp"
293-
#include "core/MySensorCore.cpp"
293+
#include "core/MySensorsCore.cpp"
294294

295295
#include <Arduino.h>
296296

libraries/MySensors/core/MyInclusionMode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#ifndef MyInclusionMode_h
2121
#define MyInclusionMode_h
2222

23-
#include "MySensorCore.h"
23+
#include "MySensorsCore.h"
2424

2525

2626
extern bool gatewayTransportSend(MyMessage &message);

libraries/MySensors/core/MyOTAFirmwareUpdate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#ifndef MyOTAFirmwareUpdate_h
2121
#define MyOTAFirmwareUpdate_h
2222

23-
#include "MySensorCore.h"
23+
#include "MySensorsCore.h"
2424

2525
// Size of each firmware block
2626
#define FIRMWARE_BLOCK_SIZE 16

libraries/MySensors/core/MyPrivateConfig.h.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* it in the sketch:
2323
* #include "MyPrivateConfig.h"
2424
* Make sure to include it before
25-
* #include <MySensor.h>
25+
* #include <MySensors.h>
2626
* Then adapt the contents to your personal preference.
2727
*/
2828

libraries/MySensors/core/MyProtocol.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#ifndef MyProtocol_h
2121
#define MyProtocol_h
2222

23-
#include "MySensorCore.h"
23+
#include "MySensorsCore.h"
2424

2525

2626
// parse(message, inputString)

libraries/MySensors/core/MySensorCore.cpp renamed to libraries/MySensors/core/MySensorsCore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* version 2 as published by the Free Software Foundation.
1818
*/
1919

20-
#include "MySensorCore.h"
20+
#include "MySensorsCore.h"
2121

2222
ControllerConfig _cc; // Configuration coming from controller
2323
NodeConfig _nc; // Essential settings for node to work

libraries/MySensors/core/MySensorCore.h renamed to libraries/MySensors/core/MySensorsCore.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
*/
1919

2020

21-
#ifndef MySensorCore_h
22-
#define MySensorCore_h
21+
#ifndef MySensorsCore_h
22+
#define MySensorsCore_h
2323

2424
#include "Version.h" // Auto generated by bot
2525
#include "MyConfig.h"

libraries/MySensors/core/MySigning.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@
146146
* @code{.cpp}
147147
* //#define MY_SIGNING_SOFT
148148
* #define MY_SIGNING_ATSHA204
149-
* #include <MySensor.h>
149+
* #include <MySensors.h>
150150
* ...
151151
* @endcode
152-
* Make sure to set the define before the inclusion of MySensor.h.
152+
* Make sure to set the define before the inclusion of MySensors.h.
153153
* It is legal to mix hardware- and software-based backends in a network. They work together.
154154
*
155155
* You also need to decide if the node (or gateway) in question require and verify signatures in addition to calculating them.
@@ -172,7 +172,7 @@
172172
* #define MY_SIGNING_ATSHA204
173173
* #define MY_SIGNING_ATSHA204_PIN 4
174174
* #define MY_SIGNING_REQUEST_SIGNATURES
175-
* #include <MySensor.h>
175+
* #include <MySensors.h>
176176
* ...
177177
* @endcode
178178
* For the software backed signingbackend, an unconnected analog pin is required to set a random seed for the pseudo-random generator.
@@ -185,7 +185,7 @@
185185
* #define MY_SIGNING_SOFT
186186
* #define MY_SIGNING_SOFT_RANDOMSEED_PIN 7
187187
* #define MY_SIGNING_REQUEST_SIGNATURES
188-
* #include <MySensor.h>
188+
* #include <MySensors.h>
189189
* ...
190190
* @endcode
191191
*
@@ -326,7 +326,7 @@
326326
* #define MY_SIGNING_ATSHA204
327327
* #define MY_SIGNING_REQUEST_SIGNATURES
328328
* #define MY_SIGNING_NODE_WHITELISTING {{.nodeId = GATEWAY_ADDRESS,.serial = {0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01}},{.nodeId = 2,.serial = {0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09}}}
329-
* #include <MySensor.h>
329+
* #include <MySensors.h>
330330
* ...
331331
* @endcode
332332
* In this example, there are two nodes in the whitelist; the gateway, and a separate node that communicates directly with this node (with signed
@@ -338,7 +338,7 @@
338338
* #define MY_SIGNING_SOFT_RANDOMSEED_PIN 7
339339
* #define MY_SIGNING_REQUEST_SIGNATURES
340340
* #define MY_SIGNING_NODE_WHITELISTING {{.nodeId = GATEWAY_ADDRESS,.serial = {0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01}},{.nodeId = 2,.serial = {0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09}}}
341-
* #include <MySensor.h>
341+
* #include <MySensors.h>
342342
* ...
343343
* @endcode
344344
*
@@ -405,7 +405,7 @@
405405
* @code{.cpp}
406406
* #define MY_SIGNING_ATSHA204
407407
* #define MY_SIGNING_REQUEST_SIGNATURES
408-
* #include <MySensor.h>
408+
* #include <MySensors.h>
409409
* ...
410410
* @endcode
411411
* If you do also want your gateway to require signatures from your lock you just enable the same (or similar if using software signing) settings
@@ -425,7 +425,7 @@
425425
* #define MY_SIGNING_SOFT
426426
* #define MY_SIGNING_SOFT_RANDOMSEED_PIN 7
427427
* #define MY_SIGNING_REQUEST_SIGNATURES
428-
* #include <MySensor.h>
428+
* #include <MySensors.h>
429429
* ...
430430
* @endcode
431431
*
@@ -435,7 +435,7 @@
435435
* #define MY_SIGNING_SOFT_RANDOMSEED_PIN 7
436436
* #define MY_SIGNING_REQUEST_SIGNATURES
437437
* #define MY_SIGNING_NODE_WHITELISTING {{.nodeId = MOTION_SENSOR_ID,.serial = {0x12,0x34,0x56,0x78,0x90,0x12,0x34,0x56,0x78}}}
438-
* #include <MySensor.h>
438+
* #include <MySensors.h>
439439
* ...
440440
* @endcode
441441
@@ -447,7 +447,7 @@
447447
* Configuration example for the keyfob (keyfob will only transmit to another node and not receive anything):<br>
448448
* @code{.cpp}
449449
* #define MY_SIGNING_ATSHA204
450-
* #include <MySensor.h>
450+
* #include <MySensors.h>
451451
* ...
452452
* @endcode
453453
*
@@ -457,7 +457,7 @@
457457
* #define MY_SIGNING_SOFT_RANDOMSEED_PIN 7
458458
* #define MY_SIGNING_REQUEST_SIGNATURES
459459
* #define MY_SIGNING_NODE_WHITELISTING {{.nodeId = GATEWAY_ADDRESS,.serial = {0x00,0x11,0x22,0x33,0x44,0x55,0x66,0x77,0x88}},{.nodeId = KEYFOB_ID,.serial = {<FROM ATSHA ON KEYFOB>}}}
460-
* #include <MySensor.h>
460+
* #include <MySensors.h>
461461
* ...
462462
* @endcode
463463
*
@@ -475,7 +475,7 @@
475475
#ifndef MySigning_h
476476
#define MySigning_h
477477

478-
#include "MySensorCore.h"
478+
#include "MySensorsCore.h"
479479
#include "drivers/ATSHA204/ATSHA204.h"
480480

481481
#ifdef MY_SIGNING_NODE_WHITELISTING

libraries/MySensors/core/MyTransport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#define MyTransport_h
2222

2323
#include <stdint.h>
24-
#include "MySensorCore.h"
24+
#include "MySensorsCore.h"
2525

2626
// Search for a new parent node after this many transmission failures
2727
#define SEARCH_FAILURES 5

libraries/MySensors/examples/AirQualitySensor/AirQualitySensor.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
//#define MY_RADIO_RFM69
4343

4444
#include <SPI.h>
45-
#include <MySensor.h>
45+
#include <MySensors.h>
4646

4747
#define CHILD_ID_MQ 0
4848
/************************Hardware Related Macros************************************/

0 commit comments

Comments
 (0)