『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
楼主: chinyaolin

[进阶教程] 使用 ESPHome 實現 ser2net 功能 (UART透传)

  [复制链接]

0

主题

19

帖子

148

积分

注册会员

Rank: 2

积分
148
金钱
129
HASS币
0
发表于 2024-4-1 23:27:30 | 显示全部楼层
学习学习
回复

使用道具 举报

34

主题

312

帖子

1452

积分

金牌会员

Rank: 6Rank: 6

积分
1452
金钱
1140
HASS币
0
发表于 2024-5-22 22:38:14 | 显示全部楼层
Compiling .pioenvs/p1test/src/main.cpp.o
Linking .pioenvs/p1test/firmware.elf
/config/.esphome/platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld: .pioenvs/p1test/src/stream_server.cpp.o: in function `_ZN21StreamServerComponent11on_shutdownEv':
stream_server.cpp:(.text._ZN21StreamServerComponent11on_shutdownEv+0x0): multiple definition of `_ZN21StreamServerComponent11on_shutdownEv'; .pioenvs/p1test/src/esphome/components/stream_server/stream_server.cpp.o:stream_server.cpp:(.text._ZN21StreamServerComponent11on_shutdownEv+0x0): first defined here
/config/.esphome/platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld: .pioenvs/p1test/src/stream_server.cpp.o: in function `_ZN21StreamServerComponent11dump_configEv':
stream_server.cpp:(.text._ZN21StreamServerComponent11dump_configEv+0x1c): multiple definition of `_ZN21StreamServerComponent11dump_configEv'; .pioenvs/p1test/src/esphome/components/stream_server/stream_server.cpp.o:stream_server.cpp:(.text._ZN21StreamServerComponent11dump_configEv+0x1c): first defined here
/config/.esphome/platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld: .pioenvs/p1test/src/stream_server.cpp.o: in function `_ZN21StreamServerComponent14publish_sensorEv':
stream_server.cpp:(.text._ZN21StreamServerComponent14publish_sensorEv+0x0): multiple definition of `_ZN21StreamServerComponent14publish_sensorEv'; .pioenvs/p1test/src/esphome/components/stream_server/stream_server.cpp.o:stream_server.cpp:(.text._ZN21StreamServerComponent14publish_sensorEv+0x0): first defined here
/config/.esphome/platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld: .pioenvs/p1test/src/stream_server.cpp.o: in function `_ZN21StreamServerComponent4readEv':
stream_server.cpp:(.text._ZN21StreamServerComponent4readEv+0x14): multiple definition of `_ZN21StreamServerComponent4readEv'; .pioenvs/p1test/src/esphome/components/stream_server/stream_server.cpp.o:stream_server.cpp:(.text._ZN21StreamServerComponent4readEv+0x14): first defined here
/config/.esphome/platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld: .pioenvs/p1test/src/stream_server.cpp.o: in function `_ZN21StreamServerComponent5flushEv':
stream_server.cpp:(.text._ZN21StreamServerComponent5flushEv+0x24): multiple definition of `_ZN21StreamServerComponent5flushEv'; .pioenvs/p1test/src/esphome/components/stream_server/stream_server.cpp.o:stream_server.cpp:(.text._ZN21StreamServerComponent5flushEv+0x24): first defined here
/config/.esphome/platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld: .pioenvs/p1test/src/stream_server.cpp.o: in function `_ZN21StreamServerComponent5writeEv':
stream_server.cpp:(.text._ZN21StreamServerComponent5writeEv+0x24): multiple definition of `_ZN21StreamServerComponent5writeEv'; .pioenvs/p1test/src/esphome/components/stream_server/stream_server.cpp.o:stream_server.cpp:(.text._ZN21StreamServerComponent5writeEv+0x24): first defined here
/config/.esphome/platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld: .pioenvs/p1test/src/stream_server.cpp.o: in function `_ZN21StreamServerComponent6ClientC2ESt10unique_ptrIN7esphome6socket6SocketESt14default_deleteIS4_EENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj':
stream_server.cpp:(.text._ZN21StreamServerComponent6ClientC2ESt10unique_ptrIN7esphome6socket6SocketESt14default_deleteIS4_EENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj+0x4): multiple definition of `_ZN21StreamServerComponent6ClientC2ESt10unique_ptrIN7esphome6socket6SocketESt14default_deleteIS4_EENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj'; .pioenvs/p1test/src/esphome/components/stream_server/stream_server.cpp.o:stream_server.cpp:(.text._ZN21StreamServerComponent6ClientC2ESt10unique_ptrIN7esphome6socket6SocketESt14default_deleteIS4_EENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj+0x4): first defined here
/config/.esphome/platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld: .pioenvs/p1test/src/stream_server.cpp.o: in function `_ZN21StreamServerComponent6ClientC2ESt10unique_ptrIN7esphome6socket6SocketESt14default_deleteIS4_EENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj':
stream_server.cpp:(.text._ZN21StreamServerComponent6ClientC2ESt10unique_ptrIN7esphome6socket6SocketESt14default_deleteIS4_EENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj+0x4): multiple definition of `_ZN21StreamServerComponent6ClientC1ESt10unique_ptrIN7esphome6socket6SocketESt14default_deleteIS4_EENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj'; .pioenvs/p1test/src/esphome/components/stream_server/stream_server.cpp.o:stream_server.cpp:(.text._ZN21StreamServerComponent6ClientC2ESt10unique_ptrIN7esphome6socket6SocketESt14default_deleteIS4_EENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj+0x4): first defined here
/config/.esphome/platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld: .pioenvs/p1test/src/stream_server.cpp.o: in function `_ZN21StreamServerComponent5setupEv':
stream_server.cpp:(.text._ZN21StreamServerComponent5setupEv+0x24): multiple definition of `_ZN21StreamServerComponent5setupEv'; .pioenvs/p1test/src/esphome/components/stream_server/stream_server.cpp.o:stream_server.cpp:(.text._ZN21StreamServerComponent5setupEv+0x24): first defined here
/config/.esphome/platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld: .pioenvs/p1test/src/stream_server.cpp.o: in function `_ZN21StreamServerComponent6acceptEv':
stream_server.cpp:(.text._ZN21StreamServerComponent6acceptEv+0x28): multiple definition of `_ZN21StreamServerComponent6acceptEv'; .pioenvs/p1test/src/esphome/components/stream_server/stream_server.cpp.o:stream_server.cpp:(.text._ZN21StreamServerComponent6acceptEv+0x28): first defined here
/config/.esphome/platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld: .pioenvs/p1test/src/stream_server.cpp.o: in function `_ZN21StreamServerComponent7cleanupEv':
stream_server.cpp:(.text._ZN21StreamServerComponent7cleanupEv+0x14): multiple definition of `_ZN21StreamServerComponent7cleanupEv'; .pioenvs/p1test/src/esphome/components/stream_server/stream_server.cpp.o:stream_server.cpp:(.text._ZN21StreamServerComponent7cleanupEv+0x14): first defined here
/config/.esphome/platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld: .pioenvs/p1test/src/stream_server.cpp.o: in function `_ZN21StreamServerComponent4loopEv':
stream_server.cpp:(.text._ZN21StreamServerComponent4loopEv+0x14): multiple definition of `_ZN21StreamServerComponent4loopEv'; .pioenvs/p1test/src/esphome/components/stream_server/stream_server.cpp.o:stream_server.cpp:(.text._ZN21StreamServerComponent4loopEv+0x14): first defined here
collect2: error: ld returned 1 exit status
*** [.pioenvs/p1test/firmware.elf] Error 1
========================= [FAILED] Took 10.03 seconds =========================



编译的时候报错
回复

使用道具 举报

1

主题

4

帖子

76

积分

注册会员

Rank: 2

积分
76
金钱
72
HASS币
0
发表于 2024-8-3 11:13:23 | 显示全部楼层
学习一下
回复

使用道具 举报

0

主题

39

帖子

220

积分

中级会员

Rank: 3Rank: 3

积分
220
金钱
181
HASS币
0
发表于 2024-8-18 20:28:39 | 显示全部楼层
{"SSerialReceived":"smallon\r\n"}
回复

使用道具 举报

0

主题

1

帖子

64

积分

注册会员

Rank: 2

积分
64
金钱
63
HASS币
0
发表于 2024-11-7 10:49:17 | 显示全部楼层
学习学习学习学习学习学习学习
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-21 19:29 , Processed in 1.648255 second(s), 24 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表