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

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

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

  [复制链接]

0

主题

19

帖子

148

积分

注册会员

Rank: 2

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

使用道具 举报

34

主题

313

帖子

1456

积分

金牌会员

Rank: 6Rank: 6

积分
1456
金钱
1143
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

帖子

78

积分

注册会员

Rank: 2

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

使用道具 举报

0

主题

39

帖子

226

积分

中级会员

Rank: 3Rank: 3

积分
226
金钱
187
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 | 显示全部楼层
学习学习学习学习学习学习学习
回复

使用道具 举报

0

主题

3

帖子

150

积分

注册会员

Rank: 2

积分
150
金钱
147
HASS币
0
发表于 2024-12-4 10:11:03 | 显示全部楼层
正好需要
回复

使用道具 举报

0

主题

4

帖子

20

积分

新手上路

Rank: 1

积分
20
金钱
16
HASS币
0
发表于 2024-12-6 05:45:39 | 显示全部楼层
thank so mutch
回复

使用道具 举报

1

主题

18

帖子

198

积分

注册会员

Rank: 2

积分
198
金钱
180
HASS币
0
发表于 2024-12-6 09:04:18 | 显示全部楼层
111111111111111111111
回复

使用道具 举报

0

主题

20

帖子

146

积分

注册会员

Rank: 2

积分
146
金钱
126
HASS币
0
发表于 2024-12-8 11:00:32 | 显示全部楼层
用 ESPHome 實現 ser2net 功能 (UART透
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-12-24 11:05 , Processed in 0.137336 second(s), 28 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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