These are chat archives for esp8266/Arduino

8th
Aug 2015
Jakub Sobieraj
@sobiso
Aug 08 2015 05:34
@igrr how to use mkspiffs?
dasari murali kristna babu
@blessmurk
Aug 08 2015 14:41
I am unable to find mqtt publisher in esp8266/Arduino i.e PubSubClient/PubSubClient.h any ideas?
Neil Kolban
@nkolban
Aug 08 2015 14:49
Are you sure it is supplied with the ESP8266 Arduino distribution? Maybe you have to add those libraries yourself?
Ivan Grokhotkov
@igrr
Aug 08 2015 15:05
pubsubclient is a separate library. see "supported libraries" section in Readme for a link.
@sobiso the Readme file for mkspiffs contains some info... basically you tell it to pack contents of a directory into a SPIFFS image.
Neil Kolban
@nkolban
Aug 08 2015 15:09
@igrr Ive been building the Arduino libs using the Eclipse framework and its showing new warnings in the code ... how would you like these reported or would you want me to fork, change and submit?
Jakub Sobieraj
@sobiso
Aug 08 2015 16:05
@igrr yes, i know this but how to put this image to esp ?
Neil Kolban
@nkolban
Aug 08 2015 17:27
@sobiso Do you have a link to mkspiffs?
Jakub Sobieraj
@sobiso
Aug 08 2015 17:28
Neil Kolban
@nkolban
Aug 08 2015 17:34
I am guessing that mkspiffs builds a data structure that contains both the file lists, directories and contents of those files ... and then ... using some API, we initialize the environment by pointing to a SPIFFS data structure in memory ... if that is close ... then the question is how to put the SPIFFS image in memory? One way (and this is only one way) would be to use the xxd tool to create a byte array of the data and link edit it with you app such that the address of the data is available as a variable in your program.