<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[RemoteXY community — Помогите поправить код.]]></title>
		<link>https://forum.remotexy.com/viewtopic.php?id=1644</link>
		<atom:link href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1644&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Помогите поправить код..]]></description>
		<lastBuildDate>Sat, 08 Apr 2023 13:46:04 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Помогите поправить код.]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=5095#p5095</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (vlaks)]]></author>
			<pubDate>Sat, 08 Apr 2023 13:46:04 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=5095#p5095</guid>
		</item>
	</channel>
</rss>
