Skip to content

Commit

Permalink
Added WioCellularClient.h.
Browse files Browse the repository at this point in the history
  • Loading branch information
matsujirushi committed Sep 25, 2018
1 parent bf09ff5 commit 14cf88e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/mqtt/mqtt-client/mqtt-client.ino
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <WioCellLibforArduino.h>
#include <Wio3GClient.h>
#include <WioCellularClient.h>
#include <PubSubClient.h> // https://github.com/SeeedJP/pubsubclient
#include <stdio.h>

Expand All @@ -10,14 +10,14 @@
#define MQTT_SERVER_HOST "hostname"
#define MQTT_SERVER_PORT (1883)

#define ID "Wio3G"
#define ID "WioCell"
#define OUT_TOPIC "outTopic"
#define IN_TOPIC "inTopic"

#define INTERVAL (60000)

WioCellular Wio;
Wio3GClient WioClient(&Wio);
WioCellularClient WioClient(&Wio);
PubSubClient MqttClient;

void callback(char* topic, byte* payload, unsigned int length) {
Expand Down
5 changes: 5 additions & 0 deletions src/WioCellularClient.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#include "Wio3GClient.h"

typedef Wio3GClient WioCellularClient;

0 comments on commit 14cf88e

Please sign in to comment.