adding an init.d script:
- look at
/etc/init.d/skeleton
for the script template - after creating your own,
chmod a+x myscript
sudo mv myscript /etc/init.d
- update-rc.d myscript.....tba...
OR
...tba...
//#include <WiFlyHQ.h> | |
/* | |
- download visualight library from here: | |
https://github.com/lpercifield/visualight/releases/download/1.1/Visualight.zip | |
- unzip, put in the Documents > Arduino > libraries folder | |
*/ | |
#include <EEPROM.h> |
<?php | |
//first grab the xml file | |
$xml=simplexml_load_file("http://www.stateair.net/web/rss/1/1.xml"); | |
/* simpleXML let's you parse through the entire file */ | |
/* info: http://www.w3schools.com/php/php_xml_simplexml.asp */ | |
//foreach($xml->children() as $child) { | |
// echo $child->getName() . ": " . $child . "<br>"; | |
//} |
char inByte; // incoming serial byte | |
int count1; //for some fake data | |
int count2; //even more fake data | |
void setup() { | |
// start serial port at 115200 bps: | |
Serial.begin(115200); | |
// while (!Serial) { | |
// ; // wait for serial port to connect. Needed for Leonardo only |
int bytesReceived[3]; //incoming bytes | |
void setup() { | |
pinMode(13, OUTPUT); //LED on 13 | |
pinMode(12, OUTPUT); //LED on 12 | |
Serial.begin(9600); | |
} | |
void loop() |
import java.io.*; | |
import java.util.*; | |
/** | |
made this work. | |
- joe |
/****** | |
* Teensy connected to Powerswitch Tail 2 | |
*/ | |
#define PST_1 3 //powerswitch tail pin 1 | |
#define PST_2 4 //powerswitch tail pin 2 | |
#define LED 13 //teensy 3.0 on-board LED | |
void setup() { | |
Serial.begin(9600); |
adding an init.d script:
/etc/init.d/skeleton
for the script templatechmod a+x myscript
sudo mv myscript /etc/init.d
OR
...tba...
string completeUpdate = "{\"requests\": [{\"method\": \"PUT\",\"path\": \"/1/classes/"+dbName+"/"+displayObjectId+"\",\"body\": "+ updateObj + "},{\"method\": \"PUT\",\"path\": \"/1/classes/"+dbName+"/"+displayObjectId+"\",\"body\": " + updateObj2 + "}]}"; | |
string someId = "someIdString"; | |
pushData(someId, completeUpdate); | |
void pushData(string someIdStr, string updateObjectStr){ | |
cout << "updating parse. objectId: "<<someIdStr<<endl; | |
cout << "\tupdate object: "<<updateObjectStr<<endl; | |
{ | |
// http://eslint.org/docs/rules/ | |
"ecmaFeatures": { | |
"binaryLiterals": false, // enable binary literals | |
"blockBindings": false, // enable let and const (aka block bindings) | |
"defaultParams": false, // enable default function parameters | |
"forOf": false, // enable for-of loops | |
"generators": false, // enable generators | |
"objectLiteralComputedProperties": false, // enable computed object literal property names |