项目作者: appzer

项目描述 :
Send push notifications through pushsafer.com from the arduino to your Browser, Android, iOS or Windows device.
高级语言: C++
项目地址: git://github.com/appzer/arduino-pushsafer.git
创建时间: 2016-08-08T11:15:26Z
项目社区:https://github.com/appzer/arduino-pushsafer

开源协议:GNU General Public License v3.0

下载


Pushsafer

Send pushsafer.com notifications from your Arduino

Pushsafer make it easy and safe to get push-notifications in real time on your

  • Android device
  • iOS device (incl. iPhone, iPad, iPod Touch)
  • Windows Phone & Desktop
  • Browser (Chrome & Firefox)

Download

https://github.com/appzer/arduino-pushsafer/

pushsafer.com-Arduino

Send pushsafer.com messages from the arduino to your Browser, Android, iOS or Windows device.

If you want to use for example a variable in the message, like a temperature reading from a temperature sensor.

Here is an example:

  1. Text[40];
  2.  
  3. Title[19] = "Current Temperature";
  4.  
  5. char temp_str[8];
  6.  
  7. // convert float value from temperature sensor to a string, where TemperatureSensor is a variable defined from a temperature sensor value
  8. dtostrf(TemperatureSensor, 4, 1, temp_str);
  9.  
  10. sprintf(Text,"The current temperature is now %s°",temp_str);
  11.  
  12. // pushsafer("Message","Title","Sound","Vibration","Icon","IconColor","URL","URLTitle","Time2Live","Priority","Retry","Expire","Confirm","Answer","AnswerOptions","AnswerForce","Device");
  13. pushsafer(Text,Title,"12","3","62","#FF0000","https://www.pushsafer.com","Open Pushsafer","0","2","60","6000","10","1","yes|no|maybe","1","a");
  14.