<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — Помогите поправить код.]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1644&amp;type=atom" />
	<updated>2023-04-08T13:46:04Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=1644</id>
		<entry>
			<title type="html"><![CDATA[Помогите поправить код.]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5095#p5095" />
			<content type="html"><![CDATA[<p>Уже использую код где происходит подключение к wifi сети (см пример)... как прикрутить правильно библиотеку RemoXY так что бы она уже не организовывала подключение к Wifi ? Что в этом коде поправить <a target="_blank" href="https://github.com/RemoteXY/RemoteXY-Arduino-library/blob/master/examples/ESP8266/WiFi_cloud/WiFi_cloud.pde">https://github.com/RemoteXY/RemoteXY-Ar … _cloud.pde</a> </p><p>#include &lt;FastBot.h&gt;<br />#include &quot;Arduino.h&quot;<br />#define WIFI_SSID &quot;WIFI_SSID&quot;<br />#define WIFI_PASS &quot;WIFI_PASS&quot;<br />#define BOT_TOKEN &quot;5917117555:AAGL_Hd5EomJипаиавиавиавиваиави&quot; <br />FastBot bot(BOT_TOKEN); //</p><br /><p>void setup() {<br />&nbsp; connectWiFi();<br />&nbsp; bot.attach(newMsg); <br /> }</p><p>void newMsg(FB_msg &amp; msg) { </p><p>}</p><p>void loop() {<br />&nbsp; &nbsp; bot.tick();<br />&nbsp; }</p><p>void connectWiFi() {<br />&nbsp; delay(2000);<br />&nbsp; Serial.begin(115200);<br />&nbsp; Serial.println();<br />&nbsp; WiFi.begin(WIFI_SSID, WIFI_PASS);<br />&nbsp; while (WiFi.status() != WL_CONNECTED) {<br />&nbsp; &nbsp; delay(200);<br />&nbsp; &nbsp; Serial.print(&quot;.&quot;);<br />&nbsp; &nbsp; if (millis() &gt; 15000) ESP.restart();<br />&nbsp; }<br />&nbsp; Serial.println(&quot;Connected&quot;);<br />}</p>]]></content>
			<author>
				<name><![CDATA[vlaks]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2403</uri>
			</author>
			<updated>2023-04-08T13:46:04Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5095#p5095</id>
		</entry>
</feed>
