ellepdesk / espaxa Goto Github PK
View Code? Open in Web Editor NEWThis project forked from galagaking/espaxa
ESP Module for controlling AXA Remote2.0
License: Creative Commons Zero v1.0 Universal
This project forked from galagaking/espaxa
ESP Module for controlling AXA Remote2.0
License: Creative Commons Zero v1.0 Universal
Ok, I'm now using the latest version of your espaxa library but facing an other issue:
error: no matching function for call to 'min(unsigned int, uint32_t)
This compile error happens on line 95 and 127 of espaxa.h
, both containing the same code:
read_array(read_buf, min(sizeof(read_buf), uint32_t(available())));
Seems that the min
function needs to be casted to something read_array accepts
Hi Pelle, this is Stainless Steel from the Tweakers Forum!
So spring is in the air and I picked up working on my AXA Remotes. Expect some issues/feature request coming up your way ;-)
First one is that the library gives errors when I want to use ESPHome with the esp-idf framework. I'd like to use the esp-idf framework because it's the recommended framework for using the Bluetooth Proxy and I'd like to double the Wemos C3 Mini I use in my AXA Remote as a Bluetooth Proxy.
Hereby the compile errors I get, hope it gives you some hints.
In file included from src/main.cpp:40:
src/axaremote.h:51:2: error: 'String' does not name a type; did you mean 'trunc'?
String send_command(const char* command) {
^~~~~~
trunc
src/axaremote.h: In member function 'virtual void AXARemote::setup()':
src/axaremote.h:44:3: error: 'send_command' was not declared in this scope
send_command("DEVICE");
^~~~~~~~~~~~
Archiving .pioenvs/bedroom-windowopener/esp-idf/bootloader_support/libbootloader_support.a
src/axaremote.h: In member function 'virtual void AXARemote::loop()':
src/axaremote.h:83:4: error: 'String' was not declared in this scope
String trash = "";
^~~~~~
src/axaremote.h:83:4: note: suggested alternative: 'trunc'
String trash = "";
^~~~~~
trunc
src/axaremote.h:85:5: error: 'trash' was not declared in this scope
trash += read();
^~~~~
src/axaremote.h:85:5: note: suggested alternative: 'tanh'
trash += read();
^~~~~
tanh
In file included from src/esphome/components/api/proto.h:4,
from src/esphome/components/api/api_pb2.h:5,
from src/esphome/components/api/api_connection.h:4,
from src/esphome.h:3,
from src/main.cpp:3:
src/axaremote.h:87:36: error: 'trash' was not declared in this scope
ESP_LOGD("espaxa", "Trash: %s", trash);
^~~~~
src/esphome/core/log.h:92:89: note: in definition of macro 'esph_log_d'
esp_log_printf_(ESPHOME_LOG_LEVEL_DEBUG, tag, __LINE__, ESPHOME_LOG_FORMAT(format), ##__VA_ARGS__)
^~~~~~~~~~~
src/axaremote.h:87:4: note: in expansion of macro 'ESP_LOGD'
ESP_LOGD("espaxa", "Trash: %s", trash);
^~~~~~~~
src/axaremote.h:87:36: note: suggested alternative: 'tanh'
ESP_LOGD("espaxa", "Trash: %s", trash);
^~~~~
src/esphome/core/log.h:92:89: note: in definition of macro 'esph_log_d'
esp_log_printf_(ESPHOME_LOG_LEVEL_DEBUG, tag, __LINE__, ESPHOME_LOG_FORMAT(format), ##__VA_ARGS__)
^~~~~~~~~~~
src/axaremote.h:87:4: note: in expansion of macro 'ESP_LOGD'
ESP_LOGD("espaxa", "Trash: %s", trash);
^~~~~~~~
In file included from src/main.cpp:40:
src/axaremote.h:105:11: error: expected ';' before 'response'
String response = "";
^~~~~~~~~
;
src/axaremote.h:109:6: error: 'response' was not declared in this scope
response += c;
^~~~~~~~
src/axaremote.h:109:6: note: suggested alternative: 'esphome'
response += c;
^~~~~~~~
esphome
In file included from src/esphome/components/api/proto.h:4,
from src/esphome/components/api/api_pb2.h:5,
from src/esphome/components/api/api_connection.h:4,
from src/esphome.h:3,
from src/main.cpp:3:
src/axaremote.h:111:40: error: 'response' was not declared in this scope
ESP_LOGD("espaxa", "Response: %s", response);
^~~~~~~~
src/esphome/core/log.h:92:89: note: in definition of macro 'esph_log_d'
esp_log_printf_(ESPHOME_LOG_LEVEL_DEBUG, tag, __LINE__, ESPHOME_LOG_FORMAT(format), ##__VA_ARGS__)
^~~~~~~~~~~
src/axaremote.h:111:5: note: in expansion of macro 'ESP_LOGD'
ESP_LOGD("espaxa", "Response: %s", response);
^~~~~~~~
src/axaremote.h:111:40: note: suggested alternative: 'esphome'
ESP_LOGD("espaxa", "Response: %s", response);
^~~~~~~~
src/esphome/core/log.h:92:89: note: in definition of macro 'esph_log_d'
esp_log_printf_(ESPHOME_LOG_LEVEL_DEBUG, tag, __LINE__, ESPHOME_LOG_FORMAT(format), ##__VA_ARGS__)
^~~~~~~~~~~
src/axaremote.h:111:5: note: in expansion of macro 'ESP_LOGD'
ESP_LOGD("espaxa", "Response: %s", response);
^~~~~~~~
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.