Skip to content

Instantly share code, notes, and snippets.

@a-mpch
Created March 17, 2021 00:47
Show Gist options
  • Save a-mpch/d535fecfa8b2a7126a60cb66361ad68a to your computer and use it in GitHub Desktop.
Save a-mpch/d535fecfa8b2a7126a60cb66361ad68a to your computer and use it in GitHub Desktop.
Peken Example
/*
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