Ein Arduino sendet PUSH Nachrichten

Ein Arduino sendet PUSH Nachrichten

Wenn man einem Arduino ein Ethernet Shield spendiert ist dieser im Netzwerk ansprechbar. Aber außer ein par Sensoren zu betreiben und LEDs an und aus zu schalten kann er auch PUSH Meldungen senden.

Als erstes benötigt man einen Account bei einem PUSH Dienst. In meinem Beispiel verwende ich den Dienst pushingbox.com.

Weil es den Rahmen hier sprengen würde die vielen Möglichkeiten des Dienstes zu erklären hier ein kleines Video für den „Erstkontakt“.

Nun kann man im Bereich API sich den Sketch für einen Arduino ansehen.


Hier nun mal der Sketch von pushingbox.com (Stand 2018)

// General code from http://www.pushingbox.com for Arduino + Ethernet Shield (official) v1.2

#include <SPI.h>
#include <Ethernet.h>

byte mac[] = { 0x00, 0xAA, 0xBB, 0xCC, 0xDE, 0x19 };   // Be sure this address is unique in your network

//Your secret DevID from PushingBox.com. You can use multiple DevID  on multiple Pin if you want
char DEVID1[] = "Your_DevID_Here";        //Scenario : "The mailbox is open"

//Numeric Pin where you connect your switch
uint8_t pinDevid1 = 3; // Example : the mailbox switch is connect to the Pin 3

// Debug mode
boolean DEBUG = true;
 //   End    //

char serverName[] = "api.pushingbox.com";
boolean pinDevid1State = false;                // Save the last state of the Pin for DEVID1
boolean lastConnected = false;                 // State of the connection last time through the main loop

// Initialize the Ethernet client library
// with the IP address and port of the server 
// that you want to connect to (port 80 is default for HTTP):
EthernetClient client;

void setup() {
  pinMode(pinDevid1, INPUT);
  // start the Ethernet connection:
  if (Ethernet.begin(mac) == 0) {
    Serial.println("Failed to configure Ethernet using DHCP");
    // no point in carrying on, so do nothing forevermore:
    Serial.println("Ethernet ready");
    // print the Ethernet board/shield's IP address:
    Serial.print("My IP address: ");
  // give the Ethernet shield a second to initialize:

void loop()
      // Listening for the pinDevid1 state
      if (digitalRead(pinDevid1) == HIGH && pinDevid1State == false) // switch on pinDevid1 is ON 
        if(DEBUG){Serial.println("pinDevid1 is HIGH");}
        pinDevid1State = true;
        //Sending request to PushingBox when the pin is HIGH
       if (digitalRead(pinDevid1) == LOW && pinDevid1State == true) // switch on pinDevid1 is OFF
        if(DEBUG){Serial.println("pinDevid1 is LOW");}
        pinDevid1State = false;
        //Sending request to PushingBox when the pin is LOW
        //sendToPushingBox(DEVID1);    //Here you can run an other scenario by creating a DEVID2 variable
      //DEBUG part
      // this write the respons from PushingBox Server.
      // You should see a "200 OK"
      if (client.available()) {
        char c = client.read();
      // if there's no net connection, but there was one last time
      // through the loop, then stop the client:
      if (!client.connected() && lastConnected) {
      lastConnected = client.connected();

//Function for sending the request to PushingBox
void sendToPushingBox(char devid[]){

  if (client.connect(serverName, 80)) {

    if(DEBUG){Serial.println("sendind request");}
    client.print("GET /pushingbox?devid=");
    client.println(" HTTP/1.1");
    client.print("Host: ");
    client.println("User-Agent: Arduino");
  else {
    if(DEBUG){Serial.println("connection failed");}

So, nun nur noch deine „Your_DevID_Here“ ändern. Diese kannst du unter „My Service“ neu anlegen.

In meinem Beispiel twittert nun der Arduino bei einem Ereigniss am PIN3.
Natürlich kann man auch einen entsprechenden Dienst aussuchen um eine PUSH Nachricht auf dein Handy zu bekommen.

So einfach ….

Tobias Guggenberger

89 Kommentare

LisaAnoky Veröffentlicht am8:05 am - Jan 18, 2021

[url=https://viagrahard.com/]best price viagra canada[/url]

Gennie Veröffentlicht am10:35 pm - Jan 17, 2021

With havin so much content do you ever run into any problems of plagorism or copyright violation? My website has a lot of exclusive content
I’ve either created myself or outsourced but it appears a lot of it is popping it up all over the web without my permission. Do you know any techniques to help prevent content from being
stolen? I’d really appreciate it.

my webpage kiêng kỵ khi kê giường ngủ

Heike Veröffentlicht am9:32 pm - Jan 17, 2021

Link exchange is nothing else however it is only placing the other person’s
website link on your page at suitable place and other person will also do similar in favor of you.

Also visit my web blog … url

Ross Veröffentlicht am1:00 pm - Jan 17, 2021

Hello there! Quick question that’s completely off topic.
Do you know how to make your site mobile friendly?
My blog looks weird when browsing from my iphone. I’m trying to
find a template or plugin that might be able to fix this problem.
If you have any recommendations, please share.

With thanks!

my homepage apps for girls

Payday Express Veröffentlicht am3:23 am - Jan 17, 2021

[url=http://loansbn.com/]new payday loan lenders[/url] [url=http://ipdadvance.com/]online loan fast[/url] [url=http://lynloans.com/]debt relief[/url] [url=http://elmaloans.com/]fast payday loans near me[/url] [url=http://exaloans.com/]loan personal money[/url] [url=http://aldolending.com/]no credit check payday loans instant approval[/url] [url=http://gusloans.com/]bad credit loans[/url] [url=http://etalending.com/]payday loans direct lenders only[/url]

MarkAnoky Veröffentlicht am6:54 pm - Jan 16, 2021

[url=https://zithromaxtb.com/]zithromax 250 cost[/url] [url=https://creamretina.com/]tretinoin gel coupon[/url] [url=https://prednisonelab.com/]predisone with no presciption[/url] [url=https://viagrastart.com/]how much is a 100mg viagra pill[/url] [url=https://cialispoi.com/]buy tadalafil 20mg price in india[/url] [url=https://anspharmacy.com/]mail order pharmacy[/url] [url=https://prednisonechem.com/]where to get prednisone[/url] [url=https://buyhydrochloroquine.com/]hydroxychloroquine sulfate 300 mg[/url]

AmyAnoky Veröffentlicht am12:57 pm - Jan 16, 2021

[url=http://cialispoi.com/]buy genuine cialis uk[/url]

superbeets review Veröffentlicht am7:56 am - Jan 16, 2021

We stumbled over here from a different page and thought I might as well check things out. I like what I see so now i’m following you. Look forward to looking at your web page again.|
superbeets review

Quick Loans Veröffentlicht am6:13 am - Jan 16, 2021

[url=https://joelloans.com/]loan without a job[/url] [url=https://gusloans.com/]no teletrack direct lenders[/url]

Merle Veröffentlicht am5:48 am - Jan 16, 2021

It’s nearly impossible to find experienced people about this subject, but you sound
like you know what you’re talking about! Thanks

My web page – icarly dating

Payday Loan Veröffentlicht am11:47 pm - Jan 15, 2021

[url=https://aldolending.com/]online payday lenders[/url]

A Payday Loan Veröffentlicht am9:15 pm - Jan 15, 2021

[url=https://refloans.com/]online loans for bad credit[/url] [url=https://lamaloans.com/]loans in pa[/url] [url=https://aldolending.com/]easy online payday loans[/url] [url=https://lynloans.com/]personal loans unsecured[/url] [url=https://gusloans.com/]payday loans sacramento[/url] [url=https://lemloans.com/]payday loans no credit check no employment verification[/url] [url=https://emmalending.com/]payday wiki[/url] [url=https://loclending.com/]5000 loan no credit[/url] [url=https://elmaloans.com/]bank loans for bad credit[/url]

Woodrow Veröffentlicht am7:10 pm - Jan 15, 2021

Thanks for another informative site. Where else
may just I am getting that type of information written in such a perfect method?

I’ve a venture that I am just now working on, and I have been on the glance out for such information.

Also visit my homepage: vape juice 12mg

MaryAnoky Veröffentlicht am2:27 pm - Jan 15, 2021

[url=https://doxycyclinesale.com/]oral doxycycline[/url] [url=https://mcialis.com/]genuine cialis price[/url] [url=https://anspharmacy.com/]promo code for canadian pharmacy meds[/url] [url=https://viagrazett.com/]cheap viagra without prescription[/url] [url=https://ivermectinnorx.com/]stromectol for head lice[/url] [url=https://levitram.com/]buying levitra online canada[/url] [url=https://viagragenericsildenafil.com/]discount viagra from india[/url] [url=https://ventolinhaler.com/]no prescription ventolin[/url] [url=https://norxviagra.com/]purchase viagra online in usa[/url] [url=https://amoxicillinmedication.com/]amoxicillin 500mg capsule generic[/url]

KiaAnoky Veröffentlicht am9:06 pm - Jan 14, 2021

[url=http://doxycyclinesale.com/]doxycycline antibiotic[/url]

Best Payday Loan Veröffentlicht am2:25 pm - Jan 14, 2021

[url=https://etalending.com/]personal loans with low interest[/url] [url=https://lynloans.com/]rapid cash[/url] [url=https://mustlending.com/]get cash now[/url] [url=https://gmtloans.com/]personal loans for people with bad credit[/url]

Easy Payday Loan Veröffentlicht am9:05 am - Jan 14, 2021

[url=https://gusloans.com/]payday loan rates[/url]

Alexis Veröffentlicht am6:09 am - Jan 14, 2021

You actually make it seem so easy with your presentation but I find this topic to be really something that I think I
would never understand. It seems too complex and extremely broad for me.
I’m looking forward for your next post, I will try to get the hang of it!

Also visit my homepage digital service blog

Spotloan Veröffentlicht am11:24 pm - Jan 13, 2021

[url=https://exaloans.com/]cash advances[/url] [url=https://elmaloans.com/]direct payday[/url] [url=https://adilending.com/]pay day online[/url] [url=https://etalending.com/]payday loans with bad credit[/url] [url=https://koaloans.com/]loan with bad credit[/url] [url=https://loansbn.com/]short term loan rates[/url]

Lashonda Veröffentlicht am9:33 pm - Jan 13, 2021

Hi, after reading this awesome article i am also delighted to share my
familiarity here wuth mates.

NllpAgedo Veröffentlicht am2:28 pm - Jan 13, 2021

canada pharmacy reviews family pharmacy longs drug store

Khthmano Veröffentlicht am4:25 am - Jan 13, 2021

canadian online pharmacies sex ed best drug store primer

KiaAnoky Veröffentlicht am12:51 am - Jan 13, 2021

order propecia

Speedycash Veröffentlicht am5:55 am - Jan 12, 2021

loans online instant approval

ecock Veröffentlicht am4:52 pm - Jan 11, 2021

Hi, this is Anna. I am sending you my intimate photos as I promised. https://tinyurl.com/y27w7sm2

JtmfAncef Veröffentlicht am12:29 pm - Jan 11, 2021

canadian online pharmacy legit online pharmacy pharmacy express

AqwsAncef Veröffentlicht am7:40 am - Jan 11, 2021

pharmacy open near me pharmacy online pharmacy canada

Personal Loans Veröffentlicht am6:01 am - Jan 11, 2021

direct payday

LokuAncef Veröffentlicht am6:56 pm - Jan 10, 2021

ed pills online rx express pharmacy canadian pharmacy viagra

Ludie Veröffentlicht am2:55 am - Jan 10, 2021

I’m pretty pleased to uncover this great site. I want to to thank you for your time just for this fantastic read!!
I definitely liked every bit of it and I have you saved to fav to see new stuff in your site.

Here is my web blog – บาคาร่า

FwsxAncef Veröffentlicht am10:33 pm - Jan 9, 2021

rx pharmacy coupons online pharmacy without scripts pharmacy drugstore online

FgvdAgedo Veröffentlicht am8:31 pm - Jan 9, 2021

24 hour drug store online pharmacy viagra best drugstore setting spray

Milagro Veröffentlicht am6:21 pm - Jan 9, 2021

Wow, superb blog layout! How long have you been blogging for?
you made blogging look easy. The overall look of your web
site is wonderful, let alone the content!

Also visit my site: พิสินี เหลืองพัฒนกุล

Britney Veröffentlicht am5:00 pm - Jan 9, 2021

Hmm it seems like your site ate my first comment (it was super long) so I guess I’ll just sum it up what I wrote and say,
I’m thoroughly enjoying your blog. I as well am an aspiring blog writer but I’m still new
to everything. Do you have any points for inexperienced
blog writers? I’d certainly appreciate it.

My blog post … อินทร์เจริญ วิมลรัตน์

order paxil Veröffentlicht am3:42 am - Jan 9, 2021

I am commenting to let you know of the fantastic encounter my cousin’s daughter experienced reading your site. She even learned many issues, not to mention what it’s like to have a wonderful giving mindset to have many people quite simply grasp chosen grueling subject areas. You really exceeded our expectations. Many thanks for giving the informative, healthy, educational and as well as easy thoughts on the topic to Jane. https://paxilparoxetines.com/

Jllocrike Veröffentlicht am3:31 am - Jan 9, 2021

ed meds global pharmacy canada canada pharmacy reviews

plaquenil for sale in mexico Veröffentlicht am12:46 pm - Jan 8, 2021

plaquenil for sale in mexico https://hydroxychloroquinee.com/

enhancing cialis effectiveness Veröffentlicht am6:26 pm - Jan 7, 2021

enhancing cialis effectiveness https://cialzi.com/

Direct Lenders Veröffentlicht am3:45 pm - Jan 7, 2021

how to get a loan with no credit

generic vardenafil Veröffentlicht am4:34 am - Jan 7, 2021

Thank you for every one of your hard work on this web page. My daughter really loves making time for investigations and it’s really obvious why. Most people learn all of the lively mode you offer priceless tactics through this web site and even inspire participation from some other people on the matter so our favorite girl is now starting to learn a lot of things. Take advantage of the rest of the year. You are always doing a remarkable job. https://joneslawncarela.com/

Speedy Cash Veröffentlicht am8:07 pm - Jan 6, 2021

credit card loans

Penney Veröffentlicht am6:01 pm - Jan 6, 2021

A person essentially help to make severely posts I’d state.
This is the very first time I frequented your web page and thus far?
I surprised with the analysis you made to make this actual submit incredible.
Great activity!

Also visit my webpage: พัสมณฑ์ แก้วมาลา (images.google.sr)

how does alcohol effect cefixime Veröffentlicht am8:23 am - Jan 6, 2021

how does alcohol effect cefixime https://ceefexime.co/

AmyAnoky Veröffentlicht am5:58 am - Jan 6, 2021

otc cialis canada

LisaAnoky Veröffentlicht am1:41 am - Jan 6, 2021

sildenafil generic over the counter

Paydayloan Veröffentlicht am5:28 pm - Jan 5, 2021

personal loan interest rates

Pasquale Veröffentlicht am4:57 pm - Jan 5, 2021

Taxi moto line
128 Rue la Boétie
75008 Paris
+33 6 51 612 712  

Taxi moto paris

I have learn several excellent stuff here. Definitely price bookmarking for revisiting.

I wonder how much effort you place to make this sort of fantastic informative website.

My web site – hey

Get A Loan Veröffentlicht am8:19 am - Jan 5, 2021

personal loans online

KiaAnoky Veröffentlicht am6:24 am - Jan 5, 2021

cheap prices for viagra

Direct Lenders Veröffentlicht am10:01 pm - Jan 4, 2021

loans online no credit check

LisaAnoky Veröffentlicht am11:54 am - Jan 4, 2021

entocort ec price

Cassandra Veröffentlicht am5:32 pm - Jan 3, 2021

First off I want to say great blog! I had a quick question that I’d
like to ask if you do not mind. I was interested to know how you
center yourself and clear your thoughts before writing.
I’ve had a hard time clearing my mind in getting my thoughts out there.
I do take pleasure in writing however it just
seems like the first 10 to 15 minutes tend to be wasted just
trying to figure out how to begin. Any ideas or tips?

Here is my page โสภณาณัฐ ชัยสงคราม (Dorothea)

Kasha Veröffentlicht am4:28 pm - Jan 3, 2021

Hello i am kavin, its my first time to commenting anywhere, when i read this
post i thought i could also make comment due to this good post.

Review my site – จาณิสตา พูลเพิ่ม

LisaAnoky Veröffentlicht am6:12 pm - Jan 2, 2021

ceftin 500 mg price

Pay Day Loan Veröffentlicht am7:44 am - Jan 2, 2021

loans online

LisaAnoky Veröffentlicht am8:38 am - Jan 1, 2021

sildenafil generic cost

Frank Veröffentlicht am5:56 am - Jan 1, 2021

What’s up, just wanted to mention, I liked this blog post.
It was practical. Keep on posting!

Feel free to surf to my web blog นิศาชล จินตนา (images.google.com.kw)

Forrest Veröffentlicht am4:49 am - Jan 1, 2021

Hi there, constantly i used to check website posts here in the early hours in the
break of day, as i enjoy to gain knowledge of more and

Look into my site: รมิตา อยุธยา

Houston Veröffentlicht am2:53 am - Jan 1, 2021

I enjoy reading an article that can make people think. Also, thank you for allowing me to comment!

My blog :: จิรัชญา สินสถิตย์โรจน์

KiaAnoky Veröffentlicht am1:24 am - Jan 1, 2021

stromectol ebay

Easy Payday Loan Veröffentlicht am1:10 am - Jan 1, 2021

pool loans

Leandra Veröffentlicht am12:50 am - Jan 1, 2021

Asking questions are actually nice thing if you are
not understanding something fully, except this
piece of writing presents pleasant understanding even.

my page – สุชาดา ระงับทุกข์

LisaAnoky Veröffentlicht am3:06 pm - Dez 31, 2020

where to buy generic flonase

LisaAnoky Veröffentlicht am3:04 pm - Dez 31, 2020

mexican pharmacy what to buy

uncooft Veröffentlicht am8:33 am - Dez 31, 2020

Hi, i believe that i saw you visited my weblog thus i got here to go back the want?.I am attempting to find issues to enhance my website!I suppose its adequate to make use of some of your concepts!! see details

nem363170flebno Veröffentlicht am7:42 am - Dez 31, 2020

mes363170ngkyt 6nUbrAO XfAz FztVnpI

uncooft Veröffentlicht am12:06 am - Dez 31, 2020

I was very pleased to discover this website. I wanted to thank you for ones time due to this fantastic read!! I definitely appreciated every bit of it and i also have you saved as a favorite to look at new information in your web site. Gain cheap tenvir check arizona

Florencia Veröffentlicht am8:45 pm - Dez 30, 2020

I’m gone to inform my little brother, that he should also pay a quick visit this web
site on regular basis to take updated from hottest reports.

my site … กาจหาญ วรสิทธิโชคชัย;

Lindsay Veröffentlicht am7:34 pm - Dez 30, 2020

I for all time emailed this website post page to all my contacts,
for the reason that if like to read it then my contacts will too.

My web site :: ณัฏฐณิชา
สีสังข์, images.google.ki,

Adeline Veröffentlicht am6:57 pm - Dez 30, 2020

If you desire to grow your experience only keep visiting this
web site and be updated with the hottest news posted here.

Here is my homepage; ปิงกี่ นาคนิล (images.google.co.vi)

AmyAnoky Veröffentlicht am6:22 pm - Dez 30, 2020

canada pharmacy cialis

uncooft Veröffentlicht am3:55 pm - Dez 30, 2020

My developer is trying to convince me to move to .net from PHP. I have always disliked the idea because of the costs. But he’s tryiong none the less. I’ve been using Movable-type on a number of websites for about a year and am nervous about switching to another platform. I have heard very good things about blogengine.net. Is there a way I can import all my wordpress content into it? Any help would be really appreciated! url

Jorge Veröffentlicht am12:33 pm - Dez 30, 2020

Good response in return of this matter with real arguments and explaining everything about that.

my web-site – สุภัสสรา ปะทิ (http://www.google.co.cr)

nym363170flebno Veröffentlicht am9:46 am - Dez 30, 2020

mys363170errtbh ffDwUgZ X6IP DS03A9c

uncooft Veröffentlicht am7:59 am - Dez 30, 2020

Wonderful goods from you, man. I’ve understand your stuff previous to and you are just extremely excellent. I really like what you’ve acquired here, certainly like what you’re stating and the way in which you say it. You make it entertaining and you still care for to keep it sensible. I can not wait to read much more from you. This is really a terrific web site. [url=http://www.psiholog-khv.ru/index.php?option=com_k2&view=itemlist&task=user&id=72518]read all[/url]

weigoudge Veröffentlicht am12:50 am - Dez 30, 2020

Hi there, its good post about media print, we all know media is a enormous source of data.
cost darifenacin generic usa near

uncooft Veröffentlicht am11:32 pm - Dez 29, 2020

I am genuinely delighted to glance at this weblog posts which includes plenty of useful facts, thanks for providing such data. Clean warticon how to order

uncooft Veröffentlicht am3:21 pm - Dez 29, 2020

Hello, i feel that i saw you visited my site thus i got here to go back the favor?.I’m attempting to in finding issues to enhance my website!I suppose its adequate to use some of your concepts!! how to get simvor order online

Quick Loans Veröffentlicht am2:31 pm - Dez 29, 2020

trusted payday loans online

Latrice Veröffentlicht am12:40 pm - Dez 29, 2020

Fantastic site you have here but I was curious if you knew of any message boards that cover the same topics talked about in this article?
I’d really love to be a part of group where I can get opinions from other knowledgeable individuals that share the same
interest. If you have any recommendations, please let me know.
Thanks a lot!

Also visit my page – กัญญารัตน์ จั่นทิม

hydroxychloroquine vs hydroxychloroquin Veröffentlicht am9:48 am - Dez 29, 2020

hydroxychloroquine vs hydroxychloroquin https://hydroxychloroquine.lm360.us/

hydroxychloroquine vs hydroxychloroquin Veröffentlicht am9:47 am - Dez 29, 2020

hydroxychloroquine vs hydroxychloroquin https://hydroxychloroquine.wisig.org/

uncooft Veröffentlicht am7:02 am - Dez 29, 2020

Hi! Would you mind if I share your blog with my facebook group? There’s a lot of folks that I think would really enjoy your content. Please let me know. Thanks Notice order aceclofenac eu

Shasta Veröffentlicht am6:54 am - Dez 29, 2020

Hey, I think your site might be having browser compatibility issues.
When I look at your blog in Safari, it looks
fine but when opening in Internet Explorer, it has some overlapping.
I just wanted to give you a quick heads up! Other then that, excellent blog!

Also visit my website … Shasta Peoples

uncooft Veröffentlicht am10:40 pm - Dez 28, 2020

Your style is very unique in comparison to other folks I’ve read stuff from. Thanks for posting when you have the opportunity, Guess I’ll just book mark this web site. Advice apotheke dolo metronidazole-gel net discount

Blondell Veröffentlicht am9:42 pm - Dez 28, 2020

Can I just say what a relief to find an individual who actually understands what they’re talking about over
the internet. You definitely realize how to bring an issue to light and make it
important. More and more people must read this and understand
this side of the story. I was surprised you’re not more popular
because you certainly possess the gift.

Check out my blog post ธวัลหทัย แดงวิจิตร (Foster)

weigoudge Veröffentlicht am5:15 pm - Dez 28, 2020

I am really loving the theme/design of your website. Do you ever run into any web browser compatibility issues? A handful of my blog visitors have complained about my blog not working correctly in Explorer but looks great in Chrome. Do you have any advice to help fix this problem?
Japan canadian online pharmacy primperan

prednisone 10mg dose pack directions Veröffentlicht am2:50 pm - Dez 28, 2020

prednisone 10mg dose pack directions https://bvsinfotech.com/

uncooft Veröffentlicht am2:22 pm - Dez 28, 2020

It’s very straightforward to find out any matter on web as compared to books, as I found this article at this web site. web