how to send push notification to arduino -


i know if there gcm arduino.

i'm working on project need send push notifications arduino connected wifi shield. arduino action based on notification gets or sync server data. advice on how need proceed helpful.

thank you.

yes can send push notification arduino. there multiple ways can send push notification arduino.

i using push notification parse.com.to send push notification parse register parse.com , create account there. once create account,you can send push notification parse dashboard.

to receive notification on arduino need write sketch on arduino, following sketch help.

include parse library make sure following code work.

/***************************************************************************************************************************   setup function ****************************************************************************************************************************/  void setup() {    bridge.begin();   serial.begin(9600);    while (!serial);    parse.begin("***e0uujqkma7nj5d5balvzegzfyvnsg22bd2fj", "umpssggp5jgmfmshfloeww5oixlm5ibt9lbs***");     // in example, associate device pre-generated installation     parse.getinstallationid();    parse.startpushservice();  }//setup function block   void loop() {  if (parse.pushavailable()) {      serial.println("start push");      parsepush push = parse.nextpush();     // print whole json body      string message = push.getjsonbody();     // serial.print("new push message size: ");     //  serial.println(message.length());     // serial.print("new push message content: ");     serial.println(message);     // push     // important, close push message     push.close();     checkstatus(message);        serial.println("end push");     }//if push notification block  } //loop  

you can read documentation here https://parse.com/docs/arduino/guide#push-notifications.

i hope help.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -