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
/*************************************************** | |
This is an example for our Adafruit FONA Cellular Module | |
Designed specifically to work with the Adafruit FONA | |
----> http://www.adafruit.com/products/1946 | |
----> http://www.adafruit.com/products/1963 | |
----> http://www.adafruit.com/products/2468 | |
----> http://www.adafruit.com/products/2542 | |
These cellular modules use TTL Serial to communicate, 2 pins are |
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
/* | |
Blink | |
Turns on an LED on for one second, then off for one second, repeatedly. | |
Most Arduinos have an on-board LED you can control. On the Uno and | |
Leonardo, it is attached to digital pin 13. If you're unsure what | |
pin the on-board LED is connected to on your Arduino model, check | |
the documentation at http://www.arduino.cc | |
This example code is in the public domain. |
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
#include <RFM69.h> | |
#include <SPI.h> | |
#include <SPIFlash.h> | |
#define NODEID 1 | |
#define NETWORKID 100 | |
#define FREQUENCY RF69_915MHZ //Match this with the version of your Moteino! (others: RF69_433MHZ, RF69_868MHZ) | |
#define KEY "sampleEncryptKey" //has to be same 16 characters/bytes on all nodes, not more not less! | |
#define LED 9 | |
#define SERIAL_BAUD 115200 |
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
#include <RFM69.h> | |
#include <SPI.h> | |
#include <SPIFlash.h> | |
#define NODEID 99 | |
#define NETWORKID 100 | |
#define GATEWAYID 1 | |
#define FREQUENCY RF69_915MHZ //Match this with the version of your Moteino! (others: RF69_433MHZ, RF69_868MHZ) | |
#define KEY "sampleEncryptKey" //has to be same 16 characters/bytes on all nodes, not more not less! | |
#define LED 9 |
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
/*************************************************** | |
Adafruit CC3000 Breakout/Shield TCP Chat Server | |
This is a simple chat server which allows clients to connect | |
with telnet and exchange messages. Anything sent by one | |
client will be written out to all connected clients. | |
See the CC3000 tutorial on Adafruit's learning system | |
for more information on setting up and using the |
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
/*************************************************** | |
Adafruit CC3000 Breakout/Shield TCP Chat Server | |
This is a simple chat server which allows clients to connect | |
with telnet and exchange messages. Anything sent by one | |
client will be written out to all connected clients. | |
See the CC3000 tutorial on Adafruit's learning system | |
for more information on setting up and using the |
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
#include "Surata_FONA.h" | |
#include <JeeLib.h> | |
//thermistor stuff ----------------------- | |
#define THERMISTORPIN A0 | |
// resistance at 25 degrees C | |
#define THERMISTORNOMINAL 10000 | |
// temp. for nominal resistance (almost always 25 C) | |
#define TEMPERATURENOMINAL 25 | |
// how many samples to take and average, more takes longer |
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
#include "Surata_FONA.h" | |
#include <JeeLib.h> | |
// sparkfun stuff ------ | |
char idChar [] = "1"; //the sensor id | |
char publicKey[]="o8qV1oDQg2iWzZR8LXyo"; | |
char privateKey[]= "yzNGR1bZKmCXjYz9p6NR"; |
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
#include "Surata_FONA.h" | |
#include <JeeLib.h> | |
// sparkfun stuff ------ | |
char idChar [] = "2"; //the sensor id | |
#define sleepMinutes 0 | |
// |
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
#include "Surata_FONA.h" | |
#include <JeeLib.h> | |
char sensorIDChar [] = "22"; //the sensor id | |
#define sleepMinutes 1440 | |
//SMS target: | |
char sendto[]="+3183795500"; |