ARMmbed / easy-connect

DEPRECATED: Easily add all supported connectivity methods to your mbed OS project
14 stars 39 forks source link

[OOB 5.7][tls-client] ESP8266Interface.h - no such file or directory #60

Closed yennster closed 6 years ago

yennster commented 6 years ago

Description

Bug

Target: K66F

Toolchain: GCC_ARM

Toolchain version:

$ ${HOME}/opt/gcc-arm-none-eabi-6-2017-q2-update/bin/arm-none-eabi-gcc --version
arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors 6-2017-q2-update) 6.3.1 20170620 (release) [ARM/embedded-6-branch revision 249437]
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

mbed-cli version: 1.2.0

mbed-os sha: easy-connect (f2912a4a2139409c0c015edfd82b236b4f81fe51) mbed-os-example-tls (89c8bf82cbd7d5356c8de6029a27422ce7842704) mbed-os (da9464d103057f63064e49df258c1e5ca901c07c)

Expected behavior: The program compiles and flashes successfully.

Actual behavior: The program does not compile successfully.

~/Repos/oob/mbed-os-example-tls/tls-client $ mbed compile -t GCC_ARM -m K66F -f
Building project tls-client (K66F, GCC_ARM)
Scan: .
Scan: mbed
Scan: env
Scan: FEATURE_COMMON_PAL
Scan: FEATURE_LWIP
Compile [100.0%]: main.cpp
[Fatal Error] easy-connect.h@16,30: ESP8266Interface.h: No such file or directory
[ERROR] In file included from ./main.cpp:36:0:
./easy-connect/easy-connect.h:16:30: fatal error: ESP8266Interface.h: No such file or directory
 #include "ESP8266Interface.h"
                              ^
compilation terminated.

[mbed] ERROR: "/usr/local/opt/python/bin/python2.7" returned error code 1.
[mbed] ERROR: Command "/usr/local/opt/python/bin/python2.7 -u /Users/jenplu01/Repos/oob/mbed-os-example-tls/tls-client/mbed-os/tools/make.py -t GCC_ARM -m K66F --source . --build ./BUILD/K66F/GCC_ARM" in "/Users/jenplu01/Repos/oob/mbed-os-example-tls/tls-client"
---

Steps to reproduce:

$ git clone https://github.com/ARMmbed/mbed-os-example-tls
$ cd mbed-os-example-tls
$ git checkout mbed-os-5.7.0-oob
$ cd tls-client
$ mbed deploy
$ cd easy-connect
$ mbed update master
$ cd ..
// Update wifi credentials in mbed_app.json and change network-interface to WIFI_ESP8266
$ mbed compile -t GCC_ARM -m K66F -f

In order to resolve and compile successfully, in the root ./tls-client example folder I have to run mbed add esp8266-driver then I am able to flash the program onto the board.

teetak01 commented 6 years ago

@yennster this issue belongs to mbed-os-example-tls. It is a configuration/README issue there. It needs network-specific instructions.

The root-cause being this file: https://github.com/ARMmbed/mbed-os-example-tls/blob/master/tls-client/.mbedignore as it ignores the wifi-driver.

yennster commented 6 years ago

Ah, I see. Thanks! @teetak01