Simple arduino code to send constant values


 

#define my_data "<{\"leaf\":{\"data\":{ \"_ledblt_\":[1],\"_pwm_03\":[100],\"_mcp9700_\":[21,25,27,25,21],\"_a_00\":[700,700,600,600,700],\"_a_01\":[500,500,400,400,500],\"_d_10\":[0,0,1,1,1],\"_d_08\":[1,0,1,0,1]}}}>"

void setup()
{ 
  // open serial at 115200 baud
  Serial.begin(115200); 
}
void loop() 
{    // wait 1 second
  delay(1000) ; 
  // send data
  Serial.println( my_data ) ;
}