How compile/create image file for beta package?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
petrho
Normal user
Posts: 20
Joined: 14 Apr 2016, 17:17

How compile/create image file for beta package?

#1 Post by petrho » 14 Apr 2016, 17:19

Hi and thanks for the really nice ESPEasy. I just wondering how to create for example R100 firmware file?
I just downloaded the bunch of .ino files

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: How compile/create image file for beta package?

#2 Post by tozett » 14 Apr 2016, 17:34

maybe you want to check the wiki ? ....

http://www.esp8266.nu/index.php/Tutoria ... are_Upload

petrho
Normal user
Posts: 20
Joined: 14 Apr 2016, 17:17

Re: How compile/create image file for beta package?

#3 Post by petrho » 14 Apr 2016, 17:41

tozett wrote:maybe you want to check the wiki ? ....

http://www.esp8266.nu/index.php/Tutoria ... are_Upload
Thanks!

petrho
Normal user
Posts: 20
Joined: 14 Apr 2016, 17:17

Re: How compile/create image file for beta package?

#4 Post by petrho » 14 Apr 2016, 21:23

I tried to follow the wiki for compiling the R78 file. I have tested with Arduino 1.6.5, 1.6.8 and now nightly build 1.6.9.

I got a lot of error messages. :-(

Thanks for all help!
---

Arduino: 1.6.9 Hourly Build 2016/04/13 03:33 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Serial, 115200, 4M (3M SPIFFS)"

ESPEasy:190: error: no matching function for call to 'PubSubClient::PubSubClient(const char [1])'

PubSubClient MQTTclient("");

^

C:\Users\peter\Downloads\ESPEasy_R78\Source\ESPEasy\ESPEasy.ino:190:27: note: candidates are:

In file included from C:\Users\peter\Downloads\ESPEasy_R78\Source\ESPEasy\ESPEasy.ino:171:0:

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:116:4: note: PubSubClient::PubSubClient(const char*, uint16_t, std::function<void(char*, unsigned char*, unsigned int)>, Client&, Stream&)

PubSubClient(const char*, uint16_t, MQTT_CALLBACK_SIGNATURE,Client& client, Stream&);

^

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:116:4: note: candidate expects 5 arguments, 1 provided

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:115:4: note: PubSubClient::PubSubClient(const char*, uint16_t, std::function<void(char*, unsigned char*, unsigned int)>, Client&)

PubSubClient(const char*, uint16_t, MQTT_CALLBACK_SIGNATURE,Client& client);

^

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:115:4: note: candidate expects 4 arguments, 1 provided

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:114:4: note: PubSubClient::PubSubClient(const char*, uint16_t, Client&, Stream&)

PubSubClient(const char*, uint16_t, Client& client, Stream&);

^

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:114:4: note: candidate expects 4 arguments, 1 provided

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:113:4: note: PubSubClient::PubSubClient(const char*, uint16_t, Client&)

PubSubClient(const char*, uint16_t, Client& client);

^

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:113:4: note: candidate expects 3 arguments, 1 provided

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:112:4: note: PubSubClient::PubSubClient(uint8_t*, uint16_t, std::function<void(char*, unsigned char*, unsigned int)>, Client&, Stream&)

PubSubClient(uint8_t *, uint16_t, MQTT_CALLBACK_SIGNATURE,Client& client, Stream&);

^

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:112:4: note: candidate expects 5 arguments, 1 provided

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:111:4: note: PubSubClient::PubSubClient(uint8_t*, uint16_t, std::function<void(char*, unsigned char*, unsigned int)>, Client&)

PubSubClient(uint8_t *, uint16_t, MQTT_CALLBACK_SIGNATURE,Client& client);

^

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:111:4: note: candidate expects 4 arguments, 1 provided

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:110:4: note: PubSubClient::PubSubClient(uint8_t*, uint16_t, Client&, Stream&)

PubSubClient(uint8_t *, uint16_t, Client& client, Stream&);

^

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:110:4: note: candidate expects 4 arguments, 1 provided

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:109:4: note: PubSubClient::PubSubClient(uint8_t*, uint16_t, Client&)

PubSubClient(uint8_t *, uint16_t, Client& client);

^

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:109:4: note: candidate expects 3 arguments, 1 provided

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:108:4: note: PubSubClient::PubSubClient(IPAddress, uint16_t, std::function<void(char*, unsigned char*, unsigned int)>, Client&, Stream&)

PubSubClient(IPAddress, uint16_t, MQTT_CALLBACK_SIGNATURE,Client& client, Stream&);

^

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:108:4: note: candidate expects 5 arguments, 1 provided

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:107:4: note: PubSubClient::PubSubClient(IPAddress, uint16_t, std::function<void(char*, unsigned char*, unsigned int)>, Client&)

PubSubClient(IPAddress, uint16_t, MQTT_CALLBACK_SIGNATURE,Client& client);

^

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:107:4: note: candidate expects 4 arguments, 1 provided

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:106:4: note: PubSubClient::PubSubClient(IPAddress, uint16_t, Client&, Stream&)

PubSubClient(IPAddress, uint16_t, Client& client, Stream&);

^

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:106:4: note: candidate expects 4 arguments, 1 provided

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:105:4: note: PubSubClient::PubSubClient(IPAddress, uint16_t, Client&)

PubSubClient(IPAddress, uint16_t, Client& client);

^

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:105:4: note: candidate expects 3 arguments, 1 provided

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:104:4: note: PubSubClient::PubSubClient(Client&)

PubSubClient(Client& client);

^

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:104:4: note: no known conversion for argument 1 from 'const char [1]' to 'Client&'

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:103:4: note: PubSubClient::PubSubClient()

PubSubClient();

^

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:103:4: note: candidate expects 0 arguments, 1 provided

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:83:7: note: PubSubClient::PubSubClient(const PubSubClient&)

class PubSubClient {

^

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:83:7: note: no known conversion for argument 1 from 'const char [1]' to 'const PubSubClient&'

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:83:7: note: PubSubClient::PubSubClient(PubSubClient&&)

C:\Users\peter\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:83:7: note: no known conversion for argument 1 from 'const char [1]' to 'PubSubClient&&'

Controller:41: error: 'MQTT' does not name a type

void callback(const MQTT::Publish& pub) {

^

Controller:41: error: expected unqualified-id before '&' token

void callback(const MQTT::Publish& pub) {

^

Controller:41: error: expected ')' before '&' token

Controller:41: error: expected initializer before 'pub'

void callback(const MQTT::Publish& pub) {

^

Controller:41: error: 'MQTT' does not name a type

void callback(const MQTT::Publish& pub) {

^

Controller:41: error: expected unqualified-id before '&' token

void callback(const MQTT::Publish& pub) {

^

Controller:41: error: expected ')' before '&' token

Controller:41: error: expected initializer before 'pub'

void callback(const MQTT::Publish& pub) {

^

Multiple libraries were found for "PubSubClient.h"
Used: C:\Users\peter\Documents\Arduino\libraries\PubSubClient
Not used: C:\Program Files (x86)\Arduino\libraries\pubsubclient
Multiple libraries were found for "ArduinoJson.h"
Used: C:\Users\peter\Documents\Arduino\libraries\ArduinoJson
Not used: C:\Program Files (x86)\Arduino\libraries\ArduinoJson
Multiple libraries were found for "LiquidCrystal_I2C.h"
Used: C:\Program Files (x86)\Arduino\libraries\LiquidCrystal_I2C
Not used: C:\Users\peter\Documents\Arduino\libraries\LiquidCrystal_I2C
exit status 1
no matching function for call to 'PubSubClient::PubSubClient(const char [1])'

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

User avatar
ManS-H
Normal user
Posts: 286
Joined: 27 Dec 2015, 11:26
Location: the Netherlands

Re: How compile/create image file for beta package?

#5 Post by ManS-H » 14 Apr 2016, 21:48

petrho wrote:I tried to follow the wiki for compiling the R78 file. I have tested with Arduino 1.6.5, 1.6.8 and now nightly build 1.6.9.

I got a lot of error messages. :-(

Thanks for all help!
---
I've got the same problem. Now i used 1.6.5 and esp8266 by ESP8266 Community version 2.0.0 istead of 2.1.0 No problem at all.
I followed the Wiki for instructions, but I had the same problem with compiling R100.
I used 1.6.5. instead of 1.6.8 and esp8266 by ESP8266 Community version 2.1.0 and the problems are over.

I hope this will solved your problem.

petrho
Normal user
Posts: 20
Joined: 14 Apr 2016, 17:17

Re: How compile/create image file for beta package?

#6 Post by petrho » 14 Apr 2016, 22:07

Thanks for your quick reply.
I have found two different problems.
First it seems like PubSubClient was misspelled as pubsubclient.

And then as you said - to let R78 work - downgrade the "esp8266 by ESP8266 Community" to version 2.0.0. For R100 I upgraded to 2.1.0.

I am for the moment using Hourly build 1.69 201601413 for both R78 and R100

msev
Normal user
Posts: 33
Joined: 13 Feb 2016, 18:24

Re: How compile/create image file for beta package?

#7 Post by msev » 11 May 2016, 08:12

I have the same error so what is the fix?

espeasy - latest
I'm using esp board definitions - 2.1
Pubsubclient Knolleary - 2.6

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: How compile/create image file for beta package?

#8 Post by tozett » 11 May 2016, 09:05

i have compiled sucessfull r106 yesterday with:
arduino 1.6.5, platform 2.1, and pubsub-lib:

Code: Select all

name=PubSubClient
version=1.9.1
author=Nick O'Leary, Ian Tester <imroykun@gmail.com>
maintainer=Ian Tester <imroykun@gmail.com>
sentence=A library for communicating with MQTT brokers
paragraph=Supports MQTT 3.1.1
category=Communication
url=http://knolleary.net/arduino-client-for-mqtt/
architectures=esp8266
and checked this: pubsub 2.6 ?? only 2.0...
for 1.9.1: https://github.com/knolleary/pubsubclie ... tag/v1.9.1

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 23 guests