Real-time bike tracker using Adafruit Ultimate GPS, Huzzah wifi, and Pubnub

Dependencies:   MBed_Adafruit-GPS-Library mbed

PubNub.h

Committer:
ECE4180
Date:
2017-04-23
Revision:
6:5bc3eeabdca3
Parent:
2:834f8d2ebe3f

File content as of revision 6:5bc3eeabdca3:

#include "mbed.h"
#include "Huzzah.h"

#include "string"


class PubNub
{
public:
    PubNub(string pubkey, string subkey, string channel, PinName tx_pin, PinName rx_pin);
    void send_message(string message);
    void send_message(char* message);
    // for sending serial data to huzzah
    Huzzah huz;
 
private:
    string pubkey;
    string subkey;
    string channel;
    string conn_host;
    string conn_port;
};