Navigation Menu

Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

signorettae/Fishetta

Repository files navigation

Fishetta

Status: Archived

This repository has been archived and is no longer maintained because the Pushetta service does not exist anymore. status: inactive


Fishetta - A Pushetta library for Fishino Boards

Since I've been using Fishino boards I wanted to easily send notifications to my devices.

I found a free service called Pushetta which allowed to send push notifications by sending a simple HTTP request using their API.

On the documentations I found a code snipped for Arduino boards so i managed to write a Fishino library starting from it.

A simple example

Here you can find the most important parts of the example sketch.

///////////////////////////////////////////////////////////////////
//   Fishetta library example                                    //
//   Created by Emanuele Signoretta, August 9, 2017.             //
//   Send push notification by using the Pushetta webapp.        //
///////////////////////////////////////////////////////////////////

#include <SPI.h>
#include <Fishino.h> 
#include <Fishetta.h>

[...]

const char * APIKEY  = "" ; // Put here your API key 
const char * CHANNEL  = ""; // Put here your channel name

[...]

Fishetta push(CHANNEL,APIKEY); 

void setup()
{
[...]
}

void loop()
{

if (push.sendPushNotification("Fishetta library test!")){
  String serial_print = "Sent push notification at ";
  serial_print += CHANNEL;
  serial_print += " channel !";
  Serial.println(serial_print.c_str());} 

delay(10000);

}

About

This library for all the Fishino boards allows you to send push notifications through Pushetta

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages