arduino-libraries / WiFiLink-Firmware

Arduino WiFi Link firmware for ESP8266 based boards
MIT License
11 stars 30 forks source link

how to build 1.0.1? #37

Open kalsolio opened 6 years ago

kalsolio commented 6 years ago

how to build bin files.

JAndrassy commented 6 years ago

here (for the Uno WiFi)

edit: new doc

kalsolio commented 6 years ago

Board selection and Verify

In tools menu select board options.

Choose Arduino from the ESP8266 section of the Boards menu. Next choose Model Uno Wifi. Flash Size selection should be "4M (1M SPIFFS)"

then i got arduino-firmware-wifilink\ArduinoFirmwareEsp\ArduinoMcuOTA.ino:3:17: fatal error: dfu.h: No such file or directory

JAndrassy commented 6 years ago

build the 'master' branch, not 'ota'.

kalsolio commented 6 years ago

@jandrassy thank you very much. i got file ArduinoFirmwareEsp.ino.arduino_uart.bin success. but ... how can i build ArduinoFirmwareWiFiLink-WEB_PANEL-1.0.0.bin for tag1.0.1

JAndrassy commented 6 years ago

read SPIFFS chapter. but you can use the 1.0.0 version. it did not change.

kalsolio commented 6 years ago

@jandrassy https://github.com/jandrassy/arduino-firmware-wifilink/blob/ota/UNOWIFI_DEV_ED.md#building-from-source-code this file have changed, how can i find the old document...

JAndrassy commented 6 years ago

the old document is obsolete. use Uno WiFi Serial1 library with WiFi Link. the instructions are in Serial1 readme.md and in WiFi Link firmware readme.md. use the 1.1.0 version of WiFi Link firmware and library from my github repos

kalsolio commented 6 years ago

@jandrassy thank you very much. I saw two firmware, UNO WiFi with Espressif AT firmware and UNO WiFi with WiFi Link firmware, which one is better? and then I will try flashing my board.

JAndrassy commented 6 years ago

WiFi Link is better. and I support it to some extent. consultation and bugs

kalsolio commented 6 years ago

@jandrassy after the steps below, I get nothing to output, is there something wrong.

choose UNO WiFi.
open EspProxy.ino
Uncomment the #define FLASHING line
click Upload.

Choose Arduino from the ESP8266 section of the Boards menu.
Next choose Model UNO WiFi.
Flash Size selection "4M (1M SPIFFS)"

open ArduinoFirmwareEsp.ino
click Upload.

choose UNO WiFi.
open ConnectWithWPA.ino
click Upload.
then nothing show.

is there something wrong.

step1 step2 step3

JAndrassy commented 6 years ago

you didn't uncomment

include

the Uno WiFi Serial1 library has better example. more specialized for Uno WiFi

kalsolio commented 6 years ago

@jandrassy My board with UnoWiFiDevEdSerial1 work fun now. and MQTT message receive is more faster then old firmware. But OTA part is too hard for me to follow, more clear document will provide?

JAndrassy commented 6 years ago

you need the dfu library. in the docs there is a link to zip. download it and unzip to your libraries folder. build the firmware with #define MCU_OTA in config.h and upload it to esp, and then you need the upload tool and integrate it into IDE.