Giter Site home page Giter Site logo

thisandthat's People

Contributors

motwok avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

thisandthat's Issues

Compile time errors with esphome

Hi @motwok , firstly thank you for the wonderful work. I have my own code that I have been using with espnow for a long time now but seeing the possibility of using it as a esphome component is exciting.
I know you commented on the esphome integration discussion that you dont have enough bandwidth to look into this but is it possible for you to guide as to how can I remove the compile time errors I am getting so that I can do some experiments with this library.

I am using the latest version of ESPHome v2022.12.3 , when I compile a simple program I get the following errors:

Compiling /data/wifi-now-receiver/.pioenvs/wifi-now-receiver/src/esphome/core/application.cpp.o Compiling /data/wifi-now-receiver/.pioenvs/wifi-now-receiver/src/esphome/core/component.cpp.o In file included from src/esphome/components/wifi_now/receive_trigger.h:7, from src/esphome/components/wifi_now/receive_trigger.cpp:1: src/esphome/core/base_automation.h: In member function 'bool esphome::ForCondition<Ts>::check_internal()': src/esphome/core/base_automation.h:71:30: error: there are no arguments to 'millis' that depend on a template parameter, so a declaration of 'millis' must be available [-fpermissive] 71 | this->last_inactive_ = millis(); | ^~~~~~ src/esphome/core/base_automation.h:71:30: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) src/esphome/core/base_automation.h: In member function 'bool esphome::ForCondition<Ts>::check(Ts ...)': src/esphome/core/base_automation.h:78:12: error: there are no arguments to 'millis' that depend on a template parameter, so a declaration of 'millis' must be available [-fpermissive] 78 | return millis() - this->last_inactive_ >= this->time_.value(x...); | ^~~~~~ *** [/data/wifi-now-receiver/.pioenvs/wifi-now-receiver/src/esphome/components/wifi_now/receive_trigger.cpp.o] Error 1 ========================= [FAILED] Took 57.92 seconds =========================

the program I am using is:

`
substitutions:
device_id: 'wifi-now-receiver'
device_name: 'Wifi Now Receiver'
platform: ESP8266
board: d1_mini
ssid: !secret primary_ssid
ssid_pswd: !secret primary_ssid_pswd
api_pswd: !secret api_pswd
ota_pswd: !secret ota_pswd
static_ip: !secret IP_wifi_receiver

esphome:
<<: !include common/esphome.yaml

logger:

<<: !include common/common.yaml # cant use common file as I have to define my api below

wifi:
<<: !include common/wifi.yaml

api:
<<: !include common/api.yaml

wifi_now:
channel: 11
peers:
- id: tank_sensor
bssid: 5C:CF:7F:C4:B0:55
`
Pl perdon the formatting of code above, for some reason I cant get it to format here.

Wifi fallback recovery for testing

Hi, thanks for the impressive work. Sorry the ESPhome team didn't give you more support for your PR.

I was wondering how you validated/tested the communication once you flashed this component. I've realised there seems to be no easy way to test as once I flash it, the only way to read logs etc would be with serial as I lose regular wifi ap capability... Is that correct? Did you ever configure a proxy to enable both wifi and wifi_now connectivity?

Thanks for any advice you can give...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.