[NOTE this is my old page saved for enjoyment of future generations, many links dead]

Jeff McLellan | Data Analysis & App Developer

Serial Communication with Photon and Core

Use Particle CLI to read serial feedback

int i = 0;

void setup(){
 	serial.begin(9600);  // Opens serial USB communication
}

void loop(){
	i++;
	serial.print("Count Up: "); 
	serial.println(i); 
	delay(1000);
}

Results will appear in Particle CLI (or other serial app) as:

Count Up: 1
Count Up: 2
Count Up: 3
Count Up: 4