shurillu / CTBot

A simple (and easy to use) Arduino Telegram BOT Library for ESP8266/ESP32
MIT License
150 stars 34 forks source link

where can i declare for ctbot hostname of device ? #43

Closed sandikodev closed 4 years ago

sandikodev commented 4 years ago

like on there some chance for declare the hostname of device by calling wifi.sethostname("hostname") after calling the ap name by tying wifi.begin("ap_name") bwt is there any chance too in ctbot ? thanks before, just wanted recognize my device seen more organized by renaming of my esp-a89002 hostname sort by the name of where node is placed

sandikodev commented 4 years ago

done grimshoot-slurp-2020-03-07-17-56-49

you have to found them on ~/Arduino/libraries/CTBot/src/<here>

just adding as a third argue ======[project.ino/cpp]=====vvvvv=== bot_tele.wifiConnect(ssid, pass, hostname);

then don't forget on which library you'll use, ex: 'CTBot.h:53' bool wifiConnect(String ssid, String password = "", String hostname = "");

finally on 'CTBot.cpp:544' bottom of WiFi.begin WiFi.hostname(hostname.c_str());

then compile.

shurillu commented 4 years ago

Good work, I'll add in the next release. Cheers, Stefano