This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <CmdMessenger.h> | |
// Mustnt conflict / collide with our message payload data. Fine if we use base64 library ^^ above | |
char field_separator = '-'; | |
char command_separator = ';'; | |
// Attach a new CmdMessenger object to the default Serial port | |
CmdMessenger cmdMessenger = CmdMessenger(Serial, field_separator, command_separator); | |
String messageReceived; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SENDER | |
#include <CmdMessenger.h> | |
#include <avr/sleep.h> | |
#include <avr/wdt.h> | |
#define sleepTime 5 //number of 8 second sleep cycles | |
volatile byte wdt=0; //used to cound number of sleep cycles | |
String nodeLum = "\"Luminosity\""; | |
String nodeTemp = "\"Temperature\""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <redisClient.h> | |
#include <SPI.h> | |
#include <Ethernet.h> | |
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; | |
IPAddress server(192, 168, 1, 20); // Redis Server | |
RedisClient client(server); | |
void setup() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <CmdMessenger.h> | |
// Mustnt conflict / collide with our message payload data. Fine if we use base64 library ^^ above | |
char field_separator = '-'; | |
char command_separator = ';'; | |
// Attach a new CmdMessenger object to the default Serial port | |
CmdMessenger cmdMessenger = CmdMessenger(Serial, field_separator, command_separator); | |
String messageReceived; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# node-supervisor: https://github.com/isaacs/node-supervisor | |
# locomotive: http://locomotivejs.org/ | |
supervisor --watch app/controllers,config,config/environments,config/initializers -- node_modules/locomotive/bin/lcm.js server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am damienpuig on github. | |
* I am damienpuig (https://keybase.io/damienpuig) on keybase. | |
* I have a public key ASDcPUyu7VbS-k9GczUEbcSrJ4C7h5z-e9PSqs87DtU6mgo | |
To claim this, I am signing this object: |