PE 13: Connecting security sensors to Arduino

Discussion of the online video show SuperHouseTV, where Freetronics co-founder Jonathan Oxer hacks on his house using various Open Source hardware and software. [SuperHouseTV site]
KAJETALK
Posts: 2
Joined: Mon Dec 21, 2015 10:26 pm

Re: PE 13: Connecting security sensors to Arduino

Post by KAJETALK » Mon Dec 21, 2015 10:50 pm

I was able to get it to compile by changing the callback method to the following:

Code: Select all

void callback(
  char* topic,
  byte* payload,
  unsigned int length) {

And changing the constructor to the following:

Code: Select all

// Instantiate MQTT client
EthernetClient ethClient;
PubSubClient client(server, 1883, callback, ethClient);

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest