Created
March 17, 2021 00:47
-
-
Save a-mpch/d535fecfa8b2a7126a60cb66361ad68a to your computer and use it in GitHub Desktop.
Peken Example
This file contains hidden or 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
/* | |
Code example of Peken.io | |
We assume that you have to setup other variables | |
*/ | |
#include "Peken.h" | |
int value; | |
void setup(){ | |
startYourInternetConnection(); | |
peken.loadDefaultCredentials("Your Id","Your Secret Key"); | |
peken.begin(); | |
} | |
void loop(){ | |
peken.tick(); | |
value = readYourSensor(); | |
peken.send("temperature", value); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment