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
#define SMTP_SERVER "smtp.yourserver.com" | |
#define SMTP_USER_BASE64 "base64_encode_your_user" | |
#define SMTP_PASS_BASE64 "base64_encode_your_pass" | |
#define SMTP_FROM_EMAIL "[email protected]" | |
#define SMTP_TO_EMAIL "[email protected]" | |
#define SMTP_SUBJECT "Email from a Core!" | |
#define SMTP_BODY "Body body body" | |
#include "application.h" |
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 "application.h" | |
class TempSensor { | |
public: | |
char *id ; | |
uint8_t rom[8]; | |
float value ; | |
int updated ; | |
}; |
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 "WifiScan.h" | |
#include "application.h" | |
void parseScanResultToJson(WifiScanResults_t result, char *line); | |
void bytesToHex(unsigned char *data, int length, char* buffer); | |
void wipeStr(char *str, int len) { | |
for(int i = 0; i < len ;i++) { | |
str[i] = 0; | |
} |
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
using System; | |
using System.IO; | |
using System.Net; | |
using System.Text; | |
using System.Collections.Generic; | |
public class SSEvent { | |
public string Name { get; set; } | |
public string Data { get; set; } |
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
void setup() { | |
initWifi(); | |
} | |
void loop() { | |
} | |
void initWifi() { |
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 "HttpClient.h" | |
#define LOGGING | |
#define TIMEOUT 5000 // Allow maximum 5s between data packets. | |
/** | |
* Constructor. | |
*/ | |
HttpClient::HttpClient() | |
{ |
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 "application.h" | |
#include "spark_disable_wlan.h" | |
#include "spark_disable_cloud.h" | |
int state = 0; | |
int awake = 0; | |
unsigned int lastWakeup = 0; | |
//wakeup once a minute | |
unsigned int wakeupDelay = 60 * 1000; |
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
/** | |
* Created by middleca on 7/17/14. | |
*/ | |
var when = require('when'); | |
var settings = { | |
ip: "192.168.1.49", | |
port: 80, | |
start_size: 0, | |
end_size: 1024 |
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
/* | |
* Bitcoin Price Index JSON Parsing TCP Client Example | |
* BDub @ Technobly.com 6/27/2014 | |
* LICENSE: MIT (C) 2014 BDub | |
* | |
*/ | |
#pragma SPARK_NO_PREPROCESSOR | |
#include "application.h" |
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
/*********************************** | |
This is our GPS library | |
Adafruit invests time and resources providing this open source code, | |
please support Adafruit and open-source hardware by purchasing | |
products from Adafruit! | |
Written by Limor Fried/Ladyada for Adafruit Industries. | |
BSD license, check license.txt for more information | |
All text above must be included in any redistribution |
OlderNewer