Code Monkey home page Code Monkey logo

espaxa's People

Contributors

ellepdesk avatar galagaking avatar

Forkers

rrooggiieerr

espaxa's Issues

Compile error: no matching function for call to 'min(unsigned int, uint32_t)'

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

Library does not work with esp-idf framework

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);
     ^~~~~~~~

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.