Offbeat Iot
Get started
Receiving messages
import these
//Check out the documentation section on how to manage credentials like this
#include <wifiCredentials.h>
#include <offbeatIotCredentials.h>
//connect to Offbeat-IoT using websockets
#include <WebSocketsClient.h>
//using a timer to synchronize with spotify
#include <SimpleTimer.h>
after configuring your device, add the information
webSocketClient.begin(host, 443, path);
//Tell Offbeat-IoT that you'd like to receive data in json format
webSocketClient.setExtraHeaders("Accept=application/json");
webSocketClient.setAuthorization(offbeatIotUser, offbeatIotPassword);

Receiving messages

case WStype_TEXT:

  USE_SERIAL.printf("[WSc] get text: %s\n", payload);
  break;
Integrate