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
--[[ | |
Script de test | |
Author Xylerk | |
]]-- | |
-- Définition de fonctions utiles | |
function sendOn(target,nid) | |
target = tostring(target) | |
nid = tostring(nid) | |
cmdToSend = string.format("curl -X GET 'http://localhost:8888/node/on?target=%s&sender=1&nid=%s'",target,nid) | |
os.execute(cmdToSend) |
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
// Ydle.cpp | |
// | |
// Ydle implementation for Arduino | |
// See the README file in this directory for documentation | |
// For changes, look at Ydle.h | |
// | |
// Authors: | |
// Fabrice Scheider AKA Denia, | |
// Manuel Esteban AKA Yaug | |
// Matthieu Desgardin AKA Zescientist |
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
// Last changes: 01-16-2015 | |
// Ydle.cpp | |
// | |
// Ydle implementation for Arduino | |
// See the README file in this directory for documentation | |
// For changes, look at Ydle.h | |
// | |
// Authors: | |
// Fabrice Scheider AKA Denia, | |
// Manuel Esteban AKA Yaug |
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
#ifndef dataStructures_H_ | |
#define dataStructures_H_ | |
#include "Float.h" | |
typedef struct { | |
uint8_t cmd; | |
uint8_t nid; | |
} sReceivedCommand; |
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
/* Author : Xylerk | |
* Description : Sketch de test fonctions cmdOn et cmdOff | |
* Le node atteint que le master lui demande les données | |
* Licence : CC-BY-SA | |
*/ | |
#include <TimerOne.h> | |
#include "Ydle.h" | |
#include "Float.h" | |
#include "dataStructures.h" |