You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for providing all of this... However it seems I am running into a compiling issue (probably something silly I've missed)
When I go to compile in ESPhome, I get quite a few errors... This may have something to do with where my .h file is stored. I am running ESPhome in a docker container. It does appear the yaml file can reference the uart.h file... here is the logs... any suggestions would be appreciated!
HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash
Dependency Graph
|-- ESPAsyncTCP-esphome @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 3.1.0
|-- DNSServer @ 1.1.1
|-- ESP8266WiFi @ 1.0
|-- ESP8266mDNS @ 1.2
|-- noise-c @ 0.1.4
Compiling .pioenvs/ld2450-sensor-radar/src/main.cpp.o
Compiling .pioenvs/ld2450-sensor-radar/libc5f/ESPAsyncWebServer-esphome/WebResponses.cpp.o
Compiling .pioenvs/ld2450-sensor-radar/libc5f/ESPAsyncWebServer-esphome/WebServer.cpp.o
Compiling .pioenvs/ld2450-sensor-radar/lib070/DNSServer/DNSServer.cpp.o
In file included from src/esphome.h:26,
from src/main.cpp:3:
src/esphome/components/custom_component/ld2450_uart.h:7: warning: "highByte" redefined
7 | #define highByte(val) (uint8_t)((val) >> 8)
|
In file included from .piolibdeps/ld2450-sensor-radar/ESPAsyncWebServer-esphome/src/ESPAsyncWebServer.h:24,
from src/esphome/components/web_server_base/web_server_base.h:10,
from src/esphome/components/captive_portal/captive_portal.h:10,
from src/esphome.h:21,
from src/main.cpp:3:
/config/.esphome/platformio/packages/framework-arduinoespressif8266/cores/esp8266/Arduino.h:142: note: this is the location of the previous definition
142 | #define highByte(w) ((uint8_t) ((w) >> 8))
|
In file included from src/esphome.h:26,
from src/main.cpp:3:
src/esphome/components/custom_component/ld2450_uart.h:8: warning: "lowByte" redefined
8 | #define lowByte(val) (uint8_t)((val) & 0xff)
|
In file included from .piolibdeps/ld2450-sensor-radar/ESPAsyncWebServer-esphome/src/ESPAsyncWebServer.h:24,
from src/esphome/components/web_server_base/web_server_base.h:10,
from src/esphome/components/captive_portal/captive_portal.h:10,
from src/esphome.h:21,
from src/main.cpp:3:
/config/.esphome/platformio/packages/framework-arduinoespressif8266/cores/esp8266/Arduino.h:141: note: this is the location of the previous definition
141 | #define lowByte(w) ((uint8_t) ((w) & 0xff))
|
Archiving .pioenvs/ld2450-sensor-radar/lib070/libDNSServer.a
Compiling .pioenvs/ld2450-sensor-radar/libfb2/ESP8266mDNS/ESP8266mDNS.cpp.o
In file included from src/esphome.h:26,
from src/main.cpp:3:
src/esphome/components/custom_component/ld2450_uart.h:11:39: error: expected class-name before ',' token
11 | class LD2450 : public PollingComponent, public UARTDevice
| ^
src/esphome/components/custom_component/ld2450_uart.h:12:1: error: expected class-name before '{' token
12 | {
| ^
src/esphome/components/custom_component/ld2450_uart.h:14:23: error: expected ')' before '' token
14 | LD2450(UARTComponent parent) : UARTDevice(parent) {}
| ~ ^~
| )
Compiling .pioenvs/ld2450-sensor-radar/libfb2/ESP8266mDNS/LEAmDNS.cpp.o
src/esphome/components/custom_component/ld2450_uart.h:16:3: error: 'BinarySensor' does not name a type
16 | BinarySensor lastCommandSuccess = new BinarySensor();
| ^~~~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:17:3: error: 'Sensor' does not name a type
17 | Sensor target1Resolution = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:18:3: error: 'Sensor' does not name a type
18 | Sensor target1Speed = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:19:3: error: 'Sensor' does not name a type
19 | Sensor target1X = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:20:3: error: 'Sensor' does not name a type
20 | Sensor target1Y = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:21:3: error: 'Sensor' does not name a type
21 | Sensor target2Resolution = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:22:3: error: 'Sensor' does not name a type
22 | Sensor target2Speed = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:23:3: error: 'Sensor' does not name a type
23 | Sensor target2X = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:24:3: error: 'Sensor' does not name a type
24 | Sensor target2Y = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:25:3: error: 'Sensor' does not name a type
25 | Sensor target3Resolution = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:26:3: error: 'Sensor' does not name a type
26 | Sensor target3Speed = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:27:3: error: 'Sensor' does not name a type
27 | Sensor target3X = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:28:3: error: 'Sensor' does not name a type
28 | Sensor target3Y = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:29:3: error: 'Sensor' does not name a type
29 | Sensor targets = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:31:3: error: 'BinarySensor' does not name a type
31 | BinarySensor configMode = new BinarySensor();
| ^~~~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:32:3: error: 'BinarySensor' does not name a type
32 | BinarySensor bluetoothState = new BinarySensor();
| ^~~~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:33:3: error: 'TextSensor' does not name a type
33 | TextSensor macAddress = new TextSensor();
| ^~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:34:3: error: 'TextSensor' does not name a type
34 | TextSensor fwVersion = new TextSensor();
| ^~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:35:3: error: 'TextSensor' does not name a type
35 | TextSensor trackingMode = new TextSensor();
| ^~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:37:3: error: 'Sensor' does not name a type
37 | Sensor zoneType = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:38:3: error: 'Sensor' does not name a type
38 | Sensor zone1X1 = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:39:3: error: 'Sensor' does not name a type
39 | Sensor zone1Y1 = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:40:3: error: 'Sensor' does not name a type
40 | Sensor zone1X2 = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:41:3: error: 'Sensor' does not name a type
41 | Sensor zone1Y2 = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:42:3: error: 'Sensor' does not name a type
42 | Sensor zone2X1 = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:43:3: error: 'Sensor' does not name a type
43 | Sensor zone2Y1 = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:44:3: error: 'Sensor' does not name a type
44 | Sensor zone2X2 = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:45:3: error: 'Sensor' does not name a type
45 | Sensor zone2Y2 = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:46:3: error: 'Sensor' does not name a type
46 | Sensor zone3X1 = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:47:3: error: 'Sensor' does not name a type
47 | Sensor zone3Y1 = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:48:3: error: 'Sensor' does not name a type
48 | Sensor zone3X2 = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:49:3: error: 'Sensor' does not name a type
49 | Sensor zone3Y2 = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:313:8: error: 'void LD2450::setup()' marked 'override', but does not override
313 | void setup() override {
| ^~~~~
src/esphome/components/custom_component/ld2450_uart.h:317:8: error: 'void LD2450::loop()' marked 'override', but does not override
317 | void loop() override {
| ^~~~
src/esphome/components/custom_component/ld2450_uart.h: In member function 'void LD2450::sendCommand(char, char, int)':
src/esphome/components/custom_component/ld2450_uart.h:62:5: error: 'lastCommandSuccess' was not declared in this scope
62 | lastCommandSuccess->publish_state(false);
| ^~~~~~~~~~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:64:5: error: 'write_byte' was not declared in this scope
64 | write_byte(0xFD);
| ^~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h: In member function 'void LD2450::reportTargetInfo(int, char)':
src/esphome/components/custom_component/ld2450_uart.h:104:13: error: 'target1X' was not declared in this scope; did you mean 'target'?
104 | if (target1X->get_state() != newX)
| ^~~~~~~~
| target
src/esphome/components/custom_component/ld2450_uart.h:111:13: error: 'target1Y' was not declared in this scope; did you mean 'target'?
111 | if (target1Y->get_state() != newY)
| ^~~~~~~~
| target
src/esphome/components/custom_component/ld2450_uart.h:116:13: error: 'target1Speed' was not declared in this scope
116 | if (target1Speed->get_state() != newSpeed)
| ^~~~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:119:13: error: 'target1Resolution' was not declared in this scope; did you mean 'newResolution'?
119 | if (target1Resolution->get_state() != newResolution)
| ^~~~~~~~~~~~~~~~~
| newResolution
src/esphome/components/custom_component/ld2450_uart.h:128:13: error: 'target2X' was not declared in this scope; did you mean 'target'?
128 | if (target2X->get_state() != newX)
| ^~~~~~~~
| target
src/esphome/components/custom_component/ld2450_uart.h:135:13: error: 'target2Y' was not declared in this scope; did you mean 'target'?
135 | if (target2Y->get_state() != newY)
| ^~~~~~~~
| target
src/esphome/components/custom_component/ld2450_uart.h:140:13: error: 'target2Speed' was not declared in this scope
140 | if (target2Speed->get_state() != newSpeed)
| ^~~~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:143:13: error: 'target2Resolution' was not declared in this scope; did you mean 'newResolution'?
143 | if (target2Resolution->get_state() != newResolution)
| ^~~~~~~~~~~~~~~~~
| newResolution
src/esphome/components/custom_component/ld2450_uart.h:152:13: error: 'target3X' was not declared in this scope; did you mean 'target'?
152 | if (target3X->get_state() != newX)
| ^~~~~~~~
| target
src/esphome/components/custom_component/ld2450_uart.h:159:13: error: 'target3Y' was not declared in this scope; did you mean 'target'?
159 | if (target3Y->get_state() != newY)
| ^~~~~~~~
| target
src/esphome/components/custom_component/ld2450_uart.h:164:13: error: 'target3Speed' was not declared in this scope
164 | if (target3Speed->get_state() != newSpeed)
| ^~~~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:167:13: error: 'target3Resolution' was not declared in this scope; did you mean 'newResolution'?
167 | if (target3Resolution->get_state() != newResolution)
| ^~~~~~~~~~~~~~~~~
| newResolution
src/esphome/components/custom_component/ld2450_uart.h: In member function 'void LD2450::handlePeriodicData(char, int)':
src/esphome/components/custom_component/ld2450_uart.h:194:9: error: 'target1Resolution' was not declared in this scope
194 | if (target1Resolution->get_state() > 0){
| ^~~~~~~~~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:197:9: error: 'target2Resolution' was not declared in this scope
197 | if (target2Resolution->get_state() > 0){
| ^~~~~~~~~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:200:9: error: 'target3Resolution' was not declared in this scope
200 | if (target3Resolution->get_state() > 0){
| ^~~~~~~~~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:203:9: error: 'targets' was not declared in this scope; did you mean 'gets'?
203 | if (targets->get_state() != newTargets)
| ^~~~~~~
| gets
Archiving .pioenvs/ld2450-sensor-radar/libc5f/libESPAsyncWebServer-esphome.a
src/esphome/components/custom_component/ld2450_uart.h: In member function 'void LD2450::handleACKData(char, int)':
src/esphome/components/custom_component/ld2450_uart.h:216:7: error: 'lastCommandSuccess' was not declared in this scope
216 | lastCommandSuccess->publish_state(false);
| ^~~~~~~~~~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:219:5: error: 'lastCommandSuccess' was not declared in this scope
219 | lastCommandSuccess->publish_state(true);
| ^~~~~~~~~~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:224:9: error: 'trackingMode' was not declared in this scope
224 | trackingMode->publish_state("Single");
| ^~~~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:230:9: error: 'trackingMode' was not declared in this scope
230 | trackingMode->publish_state("Multiple");
| ^~~~~~~~~~~~
Compiling .pioenvs/ld2450-sensor-radar/libfb2/ESP8266mDNS/LEAmDNS_Control.cpp.o
src/esphome/components/custom_component/ld2450_uart.h:239:9: error: 'fwVersion' was not declared in this scope; did you mean 'version'?
239 | fwVersion->publish_state(version);
| ^~~~~~~~~
| version
src/esphome/components/custom_component/ld2450_uart.h:248:9: error: 'macAddress' was not declared in this scope; did you mean 'IPAddress'?
248 | macAddress->publish_state(mac);
| ^~~~~~~~~~
| IPAddress
src/esphome/components/custom_component/ld2450_uart.h:255:9: error: 'zoneType' was not declared in this scope
255 | zoneType->publish_state(buffer[10]);
| ^~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:258:9: error: 'zone1X1' was not declared in this scope
258 | zone1X1->publish_state(newX / 10);
| ^~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:260:9: error: 'zone1Y1' was not declared in this scope
260 | zone1Y1->publish_state(newY / 10);
| ^~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:262:9: error: 'zone1X2' was not declared in this scope
262 | zone1X2->publish_state(newX / 10);
| ^~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:264:9: error: 'zone1Y2' was not declared in this scope
264 | zone1Y2->publish_state(newY / 10);
| ^~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:267:9: error: 'zone2X1' was not declared in this scope
267 | zone2X1->publish_state(newX / 10);
| ^~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:269:9: error: 'zone2Y1' was not declared in this scope
269 | zone2Y1->publish_state(newY / 10);
| ^~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:271:9: error: 'zone2X2' was not declared in this scope
271 | zone2X2->publish_state(newX / 10);
| ^~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:273:9: error: 'zone2Y2' was not declared in this scope
273 | zone2Y2->publish_state(newY / 10);
| ^~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:276:9: error: 'zone3X1' was not declared in this scope
276 | zone3X1->publish_state(newX / 10);
| ^~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:278:9: error: 'zone3Y1' was not declared in this scope
278 | zone3Y1->publish_state(newY / 10);
| ^~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:280:9: error: 'zone3X2' was not declared in this scope
280 | zone3X2->publish_state(newX / 10);
| ^~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:282:9: error: 'zone3Y2' was not declared in this scope
282 | zone3Y2->publish_state(newY / 10);
| ^~~~~~~
src/esphome/components/custom_component/ld2450_uart.h: In member function 'void LD2450::setup()':
src/esphome/components/custom_component/ld2450_uart.h:314:5: error: 'set_update_interval' was not declared in this scope
314 | set_update_interval(15000);
| ^~~~~~~~~~~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h: In member function 'void LD2450::loop()':
src/esphome/components/custom_component/ld2450_uart.h:320:12: error: 'available' was not declared in this scope
320 | while (available()) {
| ^~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:321:16: error: 'read' was not declared in this scope; did you mean 'fread'?
321 | readline(read(), buffer, max_line_length);
| ^~~~
| fread
src/esphome/components/custom_component/ld2450_uart.h: In member function 'void LD2450::setConfigMode(bool)':
src/esphome/components/custom_component/ld2450_uart.h:329:5: error: 'configMode' was not declared in this scope; did you mean 'configTime'?
329 | configMode->publish_state(enable);
| ^~~~~~~~~~
| configTime
src/esphome/components/custom_component/ld2450_uart.h: In member function 'void LD2450::setBluetooth(bool)':
src/esphome/components/custom_component/ld2450_uart.h:382:5: error: 'bluetoothState' was not declared in this scope
382 | bluetoothState->publish_state(enable);
| ^~~~~~~~~~~~~~
In file included from src/main.cpp:158:
src/ld2450_uart.h: At global scope:
src/ld2450_uart.h:10:20: error: redefinition of 'const char TAG'
10 | static const char TAG = "ld2450";
| ^~~
In file included from src/esphome.h:26,
from src/main.cpp:3:
src/esphome/components/custom_component/ld2450_uart.h:10:20: note: 'const char TAG' previously defined here
10 | static const char TAG = "ld2450";
| ^~~
In file included from src/main.cpp:158:
src/ld2450_uart.h:11:7: error: redefinition of 'class LD2450'
11 | class LD2450 : public PollingComponent, public UARTDevice
| ^~~~~~
In file included from src/esphome.h:26,
from src/main.cpp:3:
src/esphome/components/custom_component/ld2450_uart.h:11:7: note: previous definition of 'class LD2450'
11 | class LD2450 : public PollingComponent, public UARTDevice
| ^~~~~~
: In lambda function:
:14:7: error: invalid 'static_cast' from type 'esphome::Component' to type 'LD2450'
: In lambda function:
:66:37: error: no matching function for call to 'LD2450::LD2450(esphome::uart::ESP8266UartComponent&)'
In file included from src/esphome.h:26,
from src/main.cpp:3:
src/esphome/components/custom_component/ld2450_uart.h:11:7: note: candidate: 'constexpr LD2450::LD2450()'
11 | class LD2450 : public PollingComponent, public UARTDevice
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:11:7: note: candidate expects 0 arguments, 1 provided
src/esphome/components/custom_component/ld2450_uart.h:11:7: note: candidate: 'constexpr LD2450::LD2450(const LD2450&)'
src/esphome/components/custom_component/ld2450_uart.h:11:7: note: no known conversion for argument 1 from 'esphome::uart::ESP8266UartComponent' to 'const LD2450&'
src/esphome/components/custom_component/ld2450_uart.h:11:7: note: candidate: 'constexpr LD2450::LD2450(LD2450&&)'
src/esphome/components/custom_component/ld2450_uart.h:11:7: note: no known conversion for argument 1 from 'esphome::uart::ESP8266UartComponent' to 'LD2450&&'
:66:38: error: could not convert '{}' from '' to 'std::vectoresphome::Component*'
: In lambda function:
:73:29: error: invalid 'static_cast' from type 'esphome::Component' to type 'LD2450'
:74:109: error: could not convert '{, , }' from '' to 'std::vectoresphome::binary_sensor::BinarySensor*'
: In lambda function:
:91:7: error: invalid 'static_cast' from type 'esphome::Component' to type 'LD2450'
: In lambda function:
:95:7: error: invalid 'static_cast' from type 'esphome::Component' to type 'LD2450'
: In lambda function:
:99:7: error: invalid 'static_cast' from type 'esphome::Component' to type 'LD2450'
: In lambda function:
:103:7: error: invalid 'static_cast' from type 'esphome::Component' to type 'LD2450'
: In lambda function:
:107:7: error: invalid 'static_cast' from type 'esphome::Component' to type 'LD2450'
: In lambda function:
:233:29: error: invalid 'static_cast' from type 'esphome::Component' to type 'LD2450'
:235:7: error: could not convert '{, , , , , , , , , , , , , , , , , , , , , , , , , }' from '' to 'std::vectoresphome::sensor::Sensor*'
: In lambda function:
:421:7: error: invalid 'static_cast' from type 'esphome::Component' to type 'LD2450'
: In lambda function:
:419:7: error: invalid 'static_cast' from type 'esphome::Component' to type 'LD2450'
: In lambda function:
:434:7: error: invalid 'static_cast' from type 'esphome::Component' to type 'LD2450'
: In lambda function:
:432:7: error: invalid 'static_cast' from type 'esphome::Component' to type 'LD2450'
: In lambda function:
:439:29: error: invalid 'static_cast' from type 'esphome::Component' to type 'LD2450'
:441:7: error: could not convert '{, , }' from '' to 'std::vectoresphome::text_sensor::TextSensor*'
: In lambda function:
:120:7: error: invalid 'static_cast' from type 'esphome::Component*' to type 'LD2450*'
Compiling .pioenvs/ld2450-sensor-radar/libfb2/ESP8266mDNS/LEAmDNS_Helpers.cpp.o
*** [.pioenvs/ld2450-sensor-radar/src/main.cpp.o] Error 1
========================== [FAILED] Took 6.08 seconds ==========================
The text was updated successfully, but these errors were encountered:
Thanks for providing all of this... However it seems I am running into a compiling issue (probably something silly I've missed)
When I go to compile in ESPhome, I get quite a few errors... This may have something to do with where my .h file is stored. I am running ESPhome in a docker container. It does appear the yaml file can reference the uart.h file... here is the logs... any suggestions would be appreciated!
HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash
Dependency Graph
|-- ESPAsyncTCP-esphome @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 3.1.0
|-- DNSServer @ 1.1.1
|-- ESP8266WiFi @ 1.0
|-- ESP8266mDNS @ 1.2
|-- noise-c @ 0.1.4
Compiling .pioenvs/ld2450-sensor-radar/src/main.cpp.o
Compiling .pioenvs/ld2450-sensor-radar/libc5f/ESPAsyncWebServer-esphome/WebResponses.cpp.o
Compiling .pioenvs/ld2450-sensor-radar/libc5f/ESPAsyncWebServer-esphome/WebServer.cpp.o
Compiling .pioenvs/ld2450-sensor-radar/lib070/DNSServer/DNSServer.cpp.o
In file included from src/esphome.h:26,
from src/main.cpp:3:
src/esphome/components/custom_component/ld2450_uart.h:7: warning: "highByte" redefined
7 | #define highByte(val) (uint8_t)((val) >> 8)
|
In file included from .piolibdeps/ld2450-sensor-radar/ESPAsyncWebServer-esphome/src/ESPAsyncWebServer.h:24,
from src/esphome/components/web_server_base/web_server_base.h:10,
from src/esphome/components/captive_portal/captive_portal.h:10,
from src/esphome.h:21,
from src/main.cpp:3:
/config/.esphome/platformio/packages/framework-arduinoespressif8266/cores/esp8266/Arduino.h:142: note: this is the location of the previous definition
142 | #define highByte(w) ((uint8_t) ((w) >> 8))
|
In file included from src/esphome.h:26,
from src/main.cpp:3:
src/esphome/components/custom_component/ld2450_uart.h:8: warning: "lowByte" redefined
8 | #define lowByte(val) (uint8_t)((val) & 0xff)
|
In file included from .piolibdeps/ld2450-sensor-radar/ESPAsyncWebServer-esphome/src/ESPAsyncWebServer.h:24,
from src/esphome/components/web_server_base/web_server_base.h:10,
from src/esphome/components/captive_portal/captive_portal.h:10,
from src/esphome.h:21,
from src/main.cpp:3:
/config/.esphome/platformio/packages/framework-arduinoespressif8266/cores/esp8266/Arduino.h:141: note: this is the location of the previous definition
141 | #define lowByte(w) ((uint8_t) ((w) & 0xff))
|
Archiving .pioenvs/ld2450-sensor-radar/lib070/libDNSServer.a
Compiling .pioenvs/ld2450-sensor-radar/libfb2/ESP8266mDNS/ESP8266mDNS.cpp.o
In file included from src/esphome.h:26,
from src/main.cpp:3:
src/esphome/components/custom_component/ld2450_uart.h:11:39: error: expected class-name before ',' token
11 | class LD2450 : public PollingComponent, public UARTDevice
| ^
src/esphome/components/custom_component/ld2450_uart.h:12:1: error: expected class-name before '{' token
12 | {
| ^
src/esphome/components/custom_component/ld2450_uart.h:14:23: error: expected ')' before '' token
14 | LD2450(UARTComponent parent) : UARTDevice(parent) {}
| ~ ^~
| )
Compiling .pioenvs/ld2450-sensor-radar/libfb2/ESP8266mDNS/LEAmDNS.cpp.o
src/esphome/components/custom_component/ld2450_uart.h:16:3: error: 'BinarySensor' does not name a type
16 | BinarySensor lastCommandSuccess = new BinarySensor();
| ^~~~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:17:3: error: 'Sensor' does not name a type
17 | Sensor target1Resolution = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:18:3: error: 'Sensor' does not name a type
18 | Sensor target1Speed = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:19:3: error: 'Sensor' does not name a type
19 | Sensor target1X = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:20:3: error: 'Sensor' does not name a type
20 | Sensor target1Y = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:21:3: error: 'Sensor' does not name a type
21 | Sensor target2Resolution = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:22:3: error: 'Sensor' does not name a type
22 | Sensor target2Speed = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:23:3: error: 'Sensor' does not name a type
23 | Sensor target2X = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:24:3: error: 'Sensor' does not name a type
24 | Sensor target2Y = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:25:3: error: 'Sensor' does not name a type
25 | Sensor target3Resolution = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:26:3: error: 'Sensor' does not name a type
26 | Sensor target3Speed = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:27:3: error: 'Sensor' does not name a type
27 | Sensor target3X = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:28:3: error: 'Sensor' does not name a type
28 | Sensor target3Y = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:29:3: error: 'Sensor' does not name a type
29 | Sensor targets = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:31:3: error: 'BinarySensor' does not name a type
31 | BinarySensor configMode = new BinarySensor();
| ^~~~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:32:3: error: 'BinarySensor' does not name a type
32 | BinarySensor bluetoothState = new BinarySensor();
| ^~~~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:33:3: error: 'TextSensor' does not name a type
33 | TextSensor macAddress = new TextSensor();
| ^~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:34:3: error: 'TextSensor' does not name a type
34 | TextSensor fwVersion = new TextSensor();
| ^~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:35:3: error: 'TextSensor' does not name a type
35 | TextSensor trackingMode = new TextSensor();
| ^~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:37:3: error: 'Sensor' does not name a type
37 | Sensor zoneType = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:38:3: error: 'Sensor' does not name a type
38 | Sensor zone1X1 = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:39:3: error: 'Sensor' does not name a type
39 | Sensor zone1Y1 = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:40:3: error: 'Sensor' does not name a type
40 | Sensor zone1X2 = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:41:3: error: 'Sensor' does not name a type
41 | Sensor zone1Y2 = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:42:3: error: 'Sensor' does not name a type
42 | Sensor zone2X1 = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:43:3: error: 'Sensor' does not name a type
43 | Sensor zone2Y1 = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:44:3: error: 'Sensor' does not name a type
44 | Sensor zone2X2 = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:45:3: error: 'Sensor' does not name a type
45 | Sensor zone2Y2 = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:46:3: error: 'Sensor' does not name a type
46 | Sensor zone3X1 = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:47:3: error: 'Sensor' does not name a type
47 | Sensor zone3Y1 = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:48:3: error: 'Sensor' does not name a type
48 | Sensor zone3X2 = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:49:3: error: 'Sensor' does not name a type
49 | Sensor zone3Y2 = new Sensor();
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:313:8: error: 'void LD2450::setup()' marked 'override', but does not override
313 | void setup() override {
| ^~~~~
src/esphome/components/custom_component/ld2450_uart.h:317:8: error: 'void LD2450::loop()' marked 'override', but does not override
317 | void loop() override {
| ^~~~
src/esphome/components/custom_component/ld2450_uart.h: In member function 'void LD2450::sendCommand(char, char, int)':
src/esphome/components/custom_component/ld2450_uart.h:62:5: error: 'lastCommandSuccess' was not declared in this scope
62 | lastCommandSuccess->publish_state(false);
| ^~~~~~~~~~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:64:5: error: 'write_byte' was not declared in this scope
64 | write_byte(0xFD);
| ^~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h: In member function 'void LD2450::reportTargetInfo(int, char)':
src/esphome/components/custom_component/ld2450_uart.h:104:13: error: 'target1X' was not declared in this scope; did you mean 'target'?
104 | if (target1X->get_state() != newX)
| ^~~~~~~~
| target
src/esphome/components/custom_component/ld2450_uart.h:111:13: error: 'target1Y' was not declared in this scope; did you mean 'target'?
111 | if (target1Y->get_state() != newY)
| ^~~~~~~~
| target
src/esphome/components/custom_component/ld2450_uart.h:116:13: error: 'target1Speed' was not declared in this scope
116 | if (target1Speed->get_state() != newSpeed)
| ^~~~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:119:13: error: 'target1Resolution' was not declared in this scope; did you mean 'newResolution'?
119 | if (target1Resolution->get_state() != newResolution)
| ^~~~~~~~~~~~~~~~~
| newResolution
src/esphome/components/custom_component/ld2450_uart.h:128:13: error: 'target2X' was not declared in this scope; did you mean 'target'?
128 | if (target2X->get_state() != newX)
| ^~~~~~~~
| target
src/esphome/components/custom_component/ld2450_uart.h:135:13: error: 'target2Y' was not declared in this scope; did you mean 'target'?
135 | if (target2Y->get_state() != newY)
| ^~~~~~~~
| target
src/esphome/components/custom_component/ld2450_uart.h:140:13: error: 'target2Speed' was not declared in this scope
140 | if (target2Speed->get_state() != newSpeed)
| ^~~~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:143:13: error: 'target2Resolution' was not declared in this scope; did you mean 'newResolution'?
143 | if (target2Resolution->get_state() != newResolution)
| ^~~~~~~~~~~~~~~~~
| newResolution
src/esphome/components/custom_component/ld2450_uart.h:152:13: error: 'target3X' was not declared in this scope; did you mean 'target'?
152 | if (target3X->get_state() != newX)
| ^~~~~~~~
| target
src/esphome/components/custom_component/ld2450_uart.h:159:13: error: 'target3Y' was not declared in this scope; did you mean 'target'?
159 | if (target3Y->get_state() != newY)
| ^~~~~~~~
| target
src/esphome/components/custom_component/ld2450_uart.h:164:13: error: 'target3Speed' was not declared in this scope
164 | if (target3Speed->get_state() != newSpeed)
| ^~~~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:167:13: error: 'target3Resolution' was not declared in this scope; did you mean 'newResolution'?
167 | if (target3Resolution->get_state() != newResolution)
| ^~~~~~~~~~~~~~~~~
| newResolution
src/esphome/components/custom_component/ld2450_uart.h: In member function 'void LD2450::handlePeriodicData(char, int)':
src/esphome/components/custom_component/ld2450_uart.h:194:9: error: 'target1Resolution' was not declared in this scope
194 | if (target1Resolution->get_state() > 0){
| ^~~~~~~~~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:197:9: error: 'target2Resolution' was not declared in this scope
197 | if (target2Resolution->get_state() > 0){
| ^~~~~~~~~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:200:9: error: 'target3Resolution' was not declared in this scope
200 | if (target3Resolution->get_state() > 0){
| ^~~~~~~~~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:203:9: error: 'targets' was not declared in this scope; did you mean 'gets'?
203 | if (targets->get_state() != newTargets)
| ^~~~~~~
| gets
Archiving .pioenvs/ld2450-sensor-radar/libc5f/libESPAsyncWebServer-esphome.a
src/esphome/components/custom_component/ld2450_uart.h: In member function 'void LD2450::handleACKData(char, int)':
src/esphome/components/custom_component/ld2450_uart.h:216:7: error: 'lastCommandSuccess' was not declared in this scope
216 | lastCommandSuccess->publish_state(false);
| ^~~~~~~~~~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:219:5: error: 'lastCommandSuccess' was not declared in this scope
219 | lastCommandSuccess->publish_state(true);
| ^~~~~~~~~~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:224:9: error: 'trackingMode' was not declared in this scope
224 | trackingMode->publish_state("Single");
| ^~~~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:230:9: error: 'trackingMode' was not declared in this scope
230 | trackingMode->publish_state("Multiple");
| ^~~~~~~~~~~~
Compiling .pioenvs/ld2450-sensor-radar/libfb2/ESP8266mDNS/LEAmDNS_Control.cpp.o
src/esphome/components/custom_component/ld2450_uart.h:239:9: error: 'fwVersion' was not declared in this scope; did you mean 'version'?
239 | fwVersion->publish_state(version);
| ^~~~~~~~~
| version
src/esphome/components/custom_component/ld2450_uart.h:248:9: error: 'macAddress' was not declared in this scope; did you mean 'IPAddress'?
248 | macAddress->publish_state(mac);
| ^~~~~~~~~~
| IPAddress
src/esphome/components/custom_component/ld2450_uart.h:255:9: error: 'zoneType' was not declared in this scope
255 | zoneType->publish_state(buffer[10]);
| ^~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:258:9: error: 'zone1X1' was not declared in this scope
258 | zone1X1->publish_state(newX / 10);
| ^~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:260:9: error: 'zone1Y1' was not declared in this scope
260 | zone1Y1->publish_state(newY / 10);
| ^~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:262:9: error: 'zone1X2' was not declared in this scope
262 | zone1X2->publish_state(newX / 10);
| ^~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:264:9: error: 'zone1Y2' was not declared in this scope
264 | zone1Y2->publish_state(newY / 10);
| ^~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:267:9: error: 'zone2X1' was not declared in this scope
267 | zone2X1->publish_state(newX / 10);
| ^~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:269:9: error: 'zone2Y1' was not declared in this scope
269 | zone2Y1->publish_state(newY / 10);
| ^~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:271:9: error: 'zone2X2' was not declared in this scope
271 | zone2X2->publish_state(newX / 10);
| ^~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:273:9: error: 'zone2Y2' was not declared in this scope
273 | zone2Y2->publish_state(newY / 10);
| ^~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:276:9: error: 'zone3X1' was not declared in this scope
276 | zone3X1->publish_state(newX / 10);
| ^~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:278:9: error: 'zone3Y1' was not declared in this scope
278 | zone3Y1->publish_state(newY / 10);
| ^~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:280:9: error: 'zone3X2' was not declared in this scope
280 | zone3X2->publish_state(newX / 10);
| ^~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:282:9: error: 'zone3Y2' was not declared in this scope
282 | zone3Y2->publish_state(newY / 10);
| ^~~~~~~
src/esphome/components/custom_component/ld2450_uart.h: In member function 'void LD2450::setup()':
src/esphome/components/custom_component/ld2450_uart.h:314:5: error: 'set_update_interval' was not declared in this scope
314 | set_update_interval(15000);
| ^~~~~~~~~~~~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h: In member function 'void LD2450::loop()':
src/esphome/components/custom_component/ld2450_uart.h:320:12: error: 'available' was not declared in this scope
320 | while (available()) {
| ^~~~~~~~~
src/esphome/components/custom_component/ld2450_uart.h:321:16: error: 'read' was not declared in this scope; did you mean 'fread'?
321 | readline(read(), buffer, max_line_length);
| ^~~~
| fread
src/esphome/components/custom_component/ld2450_uart.h: In member function 'void LD2450::setConfigMode(bool)':
src/esphome/components/custom_component/ld2450_uart.h:329:5: error: 'configMode' was not declared in this scope; did you mean 'configTime'?
329 | configMode->publish_state(enable);
| ^~~~~~~~~~
| configTime
src/esphome/components/custom_component/ld2450_uart.h: In member function 'void LD2450::setBluetooth(bool)':
src/esphome/components/custom_component/ld2450_uart.h:382:5: error: 'bluetoothState' was not declared in this scope
382 | bluetoothState->publish_state(enable);
| ^~~~~~~~~~~~~~
In file included from src/main.cpp:158:
src/ld2450_uart.h: At global scope:
src/ld2450_uart.h:10:20: error: redefinition of 'const char TAG'
10 | static const char TAG = "ld2450";
| ^~~
In file included from src/esphome.h:26,
from src/main.cpp:3:
src/esphome/components/custom_component/ld2450_uart.h:10:20: note: 'const char TAG' previously defined here
10 | static const char TAG = "ld2450";
| ^~~
In file included from src/main.cpp:158:
src/ld2450_uart.h:11:7: error: redefinition of 'class LD2450'
11 | class LD2450 : public PollingComponent, public UARTDevice
| ^~~~~~
In file included from src/esphome.h:26,
from src/main.cpp:3:
src/esphome/components/custom_component/ld2450_uart.h:11:7: note: previous definition of 'class LD2450'
11 | class LD2450 : public PollingComponent, public UARTDevice
| ^~~~~~
: In lambda function:
:14:7: error: invalid 'static_cast' from type 'esphome::Component' to type 'LD2450'
: In lambda function:
:66:37: error: no matching function for call to 'LD2450::LD2450(esphome::uart::ESP8266UartComponent&)'
In file included from src/esphome.h:26,
from src/main.cpp:3:
src/esphome/components/custom_component/ld2450_uart.h:11:7: note: candidate: 'constexpr LD2450::LD2450()'
11 | class LD2450 : public PollingComponent, public UARTDevice
| ^~~~~~
src/esphome/components/custom_component/ld2450_uart.h:11:7: note: candidate expects 0 arguments, 1 provided
src/esphome/components/custom_component/ld2450_uart.h:11:7: note: candidate: 'constexpr LD2450::LD2450(const LD2450&)'
src/esphome/components/custom_component/ld2450_uart.h:11:7: note: no known conversion for argument 1 from 'esphome::uart::ESP8266UartComponent' to 'const LD2450&'
src/esphome/components/custom_component/ld2450_uart.h:11:7: note: candidate: 'constexpr LD2450::LD2450(LD2450&&)'
src/esphome/components/custom_component/ld2450_uart.h:11:7: note: no known conversion for argument 1 from 'esphome::uart::ESP8266UartComponent' to 'LD2450&&'
:66:38: error: could not convert '{}' from '' to 'std::vectoresphome::Component*'
: In lambda function:
:73:29: error: invalid 'static_cast' from type 'esphome::Component' to type 'LD2450'
:74:109: error: could not convert '{, , }' from '' to 'std::vectoresphome::binary_sensor::BinarySensor*'
: In lambda function:
:91:7: error: invalid 'static_cast' from type 'esphome::Component' to type 'LD2450'
: In lambda function:
:95:7: error: invalid 'static_cast' from type 'esphome::Component' to type 'LD2450'
: In lambda function:
:99:7: error: invalid 'static_cast' from type 'esphome::Component' to type 'LD2450'
: In lambda function:
:103:7: error: invalid 'static_cast' from type 'esphome::Component' to type 'LD2450'
: In lambda function:
:107:7: error: invalid 'static_cast' from type 'esphome::Component' to type 'LD2450'
: In lambda function:
:233:29: error: invalid 'static_cast' from type 'esphome::Component' to type 'LD2450'
:235:7: error: could not convert '{, , , , , , , , , , , , , , , , , , , , , , , , , }' from '' to 'std::vectoresphome::sensor::Sensor*'
: In lambda function:
:421:7: error: invalid 'static_cast' from type 'esphome::Component' to type 'LD2450'
: In lambda function:
:419:7: error: invalid 'static_cast' from type 'esphome::Component' to type 'LD2450'
: In lambda function:
:434:7: error: invalid 'static_cast' from type 'esphome::Component' to type 'LD2450'
: In lambda function:
:432:7: error: invalid 'static_cast' from type 'esphome::Component' to type 'LD2450'
: In lambda function:
:439:29: error: invalid 'static_cast' from type 'esphome::Component' to type 'LD2450'
:441:7: error: could not convert '{, , }' from '' to 'std::vectoresphome::text_sensor::TextSensor*'
: In lambda function:
:120:7: error: invalid 'static_cast' from type 'esphome::Component*' to type 'LD2450*'
Compiling .pioenvs/ld2450-sensor-radar/libfb2/ESP8266mDNS/LEAmDNS_Helpers.cpp.o
*** [.pioenvs/ld2450-sensor-radar/src/main.cpp.o] Error 1
========================== [FAILED] Took 6.08 seconds ==========================
The text was updated successfully, but these errors were encountered: