Quantcast
Channel: ESPHome - Home Assistant Community
Viewing all articles
Browse latest Browse all 1486

Can I change IP address over the air?

$
0
0

@mpaneth wrote:

I currently have an ESP32 using DHCP to get its IP address and now want to give it a different fixed address in the same subnet.

Is there a way to recompile with the new fixed address and reprogram OTA?

When I try to set the IP address to 192.168.0.221 (was 192.168.0.21), I generate the following log

INFO Reading configuration /config/esphome/temp.yaml…
INFO Detected timezone ‘AEST’ with UTC offset 10 and daylight savings time from 04 October 02:00:00 to 04 April 03:00:00
INFO Generating C++ source…
INFO Compiling app…
INFO Running: platformio run -d /config/esphome/temp
Processing temp (board: d1; framework: arduino; platform: espressif8266@2.2.3)

HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
Dependency Graph
|-- 1.2.2
| |-- 1.0
|-- 1.0
|-- 1.2
| |-- 1.0
|-- 1.0
Compiling /data/temp/.pioenvs/temp/src/main.cpp.o
Linking /data/temp/.pioenvs/temp/firmware.elf
Retrieving maximum program size /data/temp/.pioenvs/temp/firmware.elf
Checking size /data/temp/.pioenvs/temp/firmware.elf
Building /data/temp/.pioenvs/temp/firmware.bin
DATA: [===== ] 46.2% (used 37888 bytes from 81920 bytes)
PROGRAM: [==== ] 40.1% (used 419044 bytes from 1044464 bytes)
Creating BIN file “/data/temp/.pioenvs/temp/firmware.bin” using “/data/temp/.pioenvs/temp/firmware.elf”
========================= [SUCCESS] Took 34.69 seconds =========================
INFO Successfully compiled program.
INFO Connecting to 192.168.0.221
ERROR Connecting to 192.168.0.221:8266 failed: [Errno 113] No route to host

Mike

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 1486

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>