<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pl-pl">
<link rel="self" type="application/atom+xml" href="https://forum.atnel.pl/feed.php?f=63&amp;t=14050&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2016-01-07T14:56:17+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=63&amp;t=14050&amp;mode</id>
<entry>
<author><name><![CDATA[driver0207]]></name></author>
<updated>2016-01-07T14:56:17+01:00</updated>
<published>2016-01-07T14:56:17+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149883#p149883</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149883#p149883"/>
<title type="html"><![CDATA[Re: komenda przekierowująca dane]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149883#p149883"><![CDATA[
Moduł jest po WiFi. wykorzystuje moduł tln13ua06 że względu na dość duży zasięg i stabilne łącze. Moduł steruje centralnym zamkiem i ogrzewaniem webasto . Odczytuje temperaturę wewnątrz auta i napięcie zasilania.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2199">driver0207</a> — 7 sty 2016, o 14:56</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[grzeniu 73]]></name></author>
<updated>2016-01-06T09:42:01+01:00</updated>
<published>2016-01-06T09:42:01+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149769#p149769</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149769#p149769"/>
<title type="html"><![CDATA[Re: komenda przekierowująca dane]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149769#p149769"><![CDATA[
Wysyłaj ,tylko jak sie zmienia wartość zmiennej.Przecież temperatura nie zmienia Ci się co 50ms. Jak łączysz sie z samochodem? Bt czy wifi? Popełniłem kiedyś sterownik do &quot;vebasto&quot; i w planach mam dołożenie modułu GSM,ale jakoś czasu brak.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1519">grzeniu 73</a> — 6 sty 2016, o 09:42</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[driver0207]]></name></author>
<updated>2016-01-05T19:00:58+01:00</updated>
<published>2016-01-05T19:00:58+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149734#p149734</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149734#p149734"/>
<title type="html"><![CDATA[Re: komenda przekierowująca dane]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149734#p149734"><![CDATA[
Dzięki wielkie. Już działa. Zrobiłem tak jak pisałeś. Wysyłam zmienne w odstępach po 50ms. Tyle że dałem sobie odświeżanie z timera.  Każde wywołanie timera wysyła zmienna automatycznie zmienia docelowom   kolejną zmienną do wysłania.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2199">driver0207</a> — 5 sty 2016, o 19:00</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[matekogon]]></name></author>
<updated>2016-01-05T13:10:59+01:00</updated>
<published>2016-01-05T13:10:59+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149716#p149716</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149716#p149716"/>
<title type="html"><![CDATA[Re: komenda przekierowująca dane]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149716#p149716"><![CDATA[
<div class="quotetitle">driver0207 napisał(a):</div><div class="quotecontent"><br />Tak a ja mam problem bo po wysłaniu 4 stringów nie wyświetla wszystkich danych a jak wyślę 3 to te 3 wyświetli . A tak to 1 z 4 zostaje wyświetlona <img src="https://forum.atnel.pl/images/smilies/icon_e_sad.gif" alt=":(" title="Smutny" /> nie wiem gdzie szukać problemu<br /></div><br /><br />Wysyłaj 4 stringi w odstępach czasowych nie naraz<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1380">matekogon</a> — 5 sty 2016, o 13:10</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[driver0207]]></name></author>
<updated>2016-01-04T18:43:38+01:00</updated>
<published>2016-01-04T18:43:38+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149663#p149663</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149663#p149663"/>
<title type="html"><![CDATA[Re: komenda przekierowująca dane]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149663#p149663"><![CDATA[
Tak a ja mam problem bo po wysłaniu 4 stringów nie wyświetla wszystkich danych a jak wyślę 3 to te 3 wyświetli . A tak to 1 z 4 zostaje wyświetlona <img src="https://forum.atnel.pl/images/smilies/icon_e_sad.gif" alt=":(" title="Smutny" /> nie wiem gdzie szukać problemu<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2199">driver0207</a> — 4 sty 2016, o 18:43</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[grzeniu 73]]></name></author>
<updated>2016-01-04T09:25:54+01:00</updated>
<published>2016-01-04T09:25:54+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149619#p149619</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149619#p149619"/>
<title type="html"><![CDATA[Re: komenda przekierowująca dane]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149619#p149619"><![CDATA[
Ja dałem parę zmiennych &quot;temp1,temp2 itd&quot; W sumie wystarcza Ci dwie trzy zmienne string.Wtedy wszystko jest ok.Pierwsza rozpoznaje do czego ma przypisać  ,a następne przyjmują dane wycięte z przychodzącego  stringa<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1519">grzeniu 73</a> — 4 sty 2016, o 09:25</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[driver0207]]></name></author>
<updated>2016-01-03T20:53:16+01:00</updated>
<published>2016-01-03T20:53:16+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149587#p149587</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149587#p149587"/>
<title type="html"><![CDATA[Re: komenda przekierowująca dane]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149587#p149587"><![CDATA[
A mam takie pytanko jeszcze czy bufor odbiorczy w androidzie ma jakieś ograniczenia ? Bo rozwiązałem te przesyłanie tych 2 zmiennych w ten sposób.<br />[syntax=basic4gl]Sub udpsrv_PacketArrived (Packet As UDPPacket)<br />Dim msg As String<br /><br /><br />msg = BytesToString(Packet.Data, Packet.Offset, Packet.Length,&quot;UTF8&quot;)<br /><br />If msg.SubString2(0,2) = &quot;u=&quot; Then<br />napiecie.Text= msg.SubString2(2,6) &amp;&quot; V&quot;<br />End If<br />If msg.SubString2(0,2) = &quot;t=&quot; Then<br />TEMPERATURA.Text= msg.SubString2(2,6) &amp;&quot; *C&quot;<br />End If<br /><br />If msg = &quot;heather_on&quot;  Then <br />ogrzewanie_stan = True<br />wlacz.Text= &quot;WYŁĄCZ&quot;<br />STAN_OGRZEWANIE.Text = &quot;WŁĄCZONE&quot;<br />End If<br /><br />If msg = &quot;heather_off&quot; Then<br />ogrzewanie_stan = False<br />wlacz.Text= &quot;WŁĄCZ&quot;<br />STAN_OGRZEWANIE.Text = &quot;WYŁĄCZONE&quot;<br />End If<br /><br />If msg = &quot;lock&quot; Then<br />centralny_stan = True<br />otworz.Text = &quot;OTWÓRZ&quot;<br />STAN_ZAMEK.Text = &quot;ZAMKNIĘTY&quot;<br />End If<br /><br />If msg = &quot;unlock&quot; Then<br />centralny_stan = False<br />otworz.Text = &quot;ZAMKNIJ&quot;<br />STAN_ZAMEK.Text = &quot;OTWARTY&quot;<br />End If<br /><br />If msg = &quot;connect&quot; Then<br />wlacz.Enabled = True<br />otworz.Enabled = True<br />End If<br /><br /><br /><br /><br /><br /><br />End Sub[/syntax]<br /><br />i losowo nie zawsze odświeżają mi się wszystkie dane. I to losowo wypada albo brak temperatury albo napięcia.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2199">driver0207</a> — 3 sty 2016, o 20:53</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[grzeniu 73]]></name></author>
<updated>2016-01-03T15:10:32+01:00</updated>
<published>2016-01-03T15:10:32+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149553#p149553</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149553#p149553"/>
<title type="html"><![CDATA[Re: komenda przekierowująca dane]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149553#p149553"><![CDATA[
Wyżej juz dodane <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1519">grzeniu 73</a> — 3 sty 2016, o 15:10</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mario]]></name></author>
<updated>2016-01-03T12:30:46+01:00</updated>
<published>2016-01-03T12:30:46+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149529#p149529</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149529#p149529"/>
<title type="html"><![CDATA[Re: komenda przekierowująca dane]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149529#p149529"><![CDATA[
Dodam tylko, że w takim przypadku warto przyjrzeć się bliżej funkcji Substring. Wymarzona do wyłuskania potrzebnego kawałka z całego stringa <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /><br /><br /><a href="https://obrazkiforum.atnel.pl/415/5b07a9e609866078c8788586ac5dfdaf.jpg"  class="postlink"><img src="https://obrazkiforum.atnel.pl/thumb/415/5b07a9e609866078c8788586ac5dfdaf.jpg" alt="Obrazek" /></a><br /><br /><a href="https://obrazkiforum.atnel.pl/415/0ba146cb96115a3c6153aaf3d2796c26.jpg"  class="postlink"><img src="https://obrazkiforum.atnel.pl/thumb/415/0ba146cb96115a3c6153aaf3d2796c26.jpg" alt="Obrazek" /></a><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=415">mario</a> — 3 sty 2016, o 12:30</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[driver0207]]></name></author>
<updated>2016-01-03T00:06:00+01:00</updated>
<published>2016-01-03T00:06:00+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149502#p149502</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149502#p149502"/>
<title type="html"><![CDATA[Re: komenda przekierowująca dane]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149502#p149502"><![CDATA[
lol no jasne . Dzieki wielkie<br /><br /><strong><span style="color: #808000">------------------------ [ Dodano po: 7 minutach ]</span></strong><br /><br />Super działa malinowo Dzięki wielkie <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2199">driver0207</a> — 3 sty 2016, o 00:06</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2016-01-02T22:55:30+01:00</updated>
<published>2016-01-02T22:55:30+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149493#p149493</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149493#p149493"/>
<title type="html"><![CDATA[Re: komenda przekierowująca dane]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149493#p149493"><![CDATA[
<div class="quotetitle">driver0207 napisał(a):</div><div class="quotecontent"><br />Mirku niestety mam błąd przy kompilacji<br /></div><br />No to może spójrz sobie na inne warunki if i na ten konkretny - czegoś nie brakuje ? <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /> ... oczywiście ja też o tym zapomniałem no ale ... chyba wiesz jak się pisze warunki if() <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /> mówię - popatrz na te wyżej i na ostatni<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=54">mirekk36</a> — 2 sty 2016, o 22:55</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[driver0207]]></name></author>
<updated>2016-01-02T22:24:24+01:00</updated>
<published>2016-01-02T22:24:24+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149487#p149487</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149487#p149487"/>
<title type="html"><![CDATA[Re: komenda przekierowująca dane]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149487#p149487"><![CDATA[
Mirku niestety mam błąd przy kompilacji oraz w kodzie gdy wprowadziłem twój kod załączam kod programu <br />[syntax=basic4gl]Dim msg As String<br />Dim Token() As String<br /><br />msg = BytesToString(Packet.Data, Packet.Offset, Packet.Length,&quot;UTF8&quot;)<br />        Token = Regex.Split( &quot;=&quot;, msg)<br />If msg = &quot;heather_on&quot;  Then <br />ogrzewanie_stan = True<br />wlacz.Text= &quot;WYŁĄCZ&quot;<br />STAN_OGRZEWANIE.Text = &quot;WŁĄCZONE&quot;<br />End If<br />If msg = &quot;heather_off&quot; Then<br />ogrzewanie_stan = False<br />wlacz.Text= &quot;WŁĄCZ&quot;<br />STAN_OGRZEWANIE.Text = &quot;WYŁĄCZONE&quot;<br />End If<br />If msg = &quot;lock&quot; Then<br />centralny_stan = True<br />otworz.Text = &quot;OTWÓRZ&quot;<br />STAN_ZAMEK.Text = &quot;ZAMKNIĘTY&quot;<br />End If<br />If msg = &quot;unlock&quot; Then<br />centralny_stan = False<br />otworz.Text = &quot;ZAMKNIJ&quot;<br />STAN_ZAMEK.Text = &quot;OTWARTY&quot;<br />End If<br />If msg = &quot;connect&quot; Then<br />wlacz.Enabled = True<br />otworz.Enabled = True<br />End If<br />If ( Token(0) = &quot;u&quot;)<br />napiecie.Text = Token(1)<br />End If[/syntax]<br /><a href="https://obrazkiforum.atnel.pl/2199/d511024fb5ebfbd77f13dfd71429860e.jpg"  class="postlink"><img src="https://obrazkiforum.atnel.pl/thumb/2199/d511024fb5ebfbd77f13dfd71429860e.jpg" alt="Obrazek" /></a><br /><br /><br />Powinienem załączyć jakąś bibliotekę?<br />Po usunięciu lini 87,88,89 kod kompiluje sie normalnie<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2199">driver0207</a> — 2 sty 2016, o 22:24</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2016-01-02T13:20:51+01:00</updated>
<published>2016-01-02T13:20:51+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149411#p149411</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149411#p149411"/>
<title type="html"><![CDATA[Re: komenda przekierowująca dane]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149411#p149411"><![CDATA[
załóżmy, że nadlatujące <strong><span style="color: #0040FF">msg </span></strong>to:   &quot;<strong><span style="color: #0080FF">u=12,3</span></strong>&quot;<br /><br />to robimy w kodzie<br />[syntax=basic4gl]Dim Token() as String<br /><br />Token = Regex.Split( &quot;=&quot;, msg)<br /><br />If( Token(0) = &quot;u&quot; )<br />    ' niech label o nazwie TOKEN wyświetli napięcie<br />    NAPIECIE.Text = Token(1)<br />End If[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=54">mirekk36</a> — 2 sty 2016, o 13:20</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[grzeniu 73]]></name></author>
<updated>2016-01-02T11:54:57+01:00</updated>
<published>2016-01-02T11:54:57+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149404#p149404</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149404#p149404"/>
<title type="html"><![CDATA[Re: komenda przekierowująca dane]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149404#p149404"><![CDATA[
Ja to zobilem tak. Procek wysyla znak,a po znaku dane jako string.<br />W androidzie <br /><br />[syntax=basic4gl]str= Text<br />    temp1 = str.SubString2(0,1)<br />                 If temp1= &quot;i&quot; Then                                ' pokazuje ile ustawione jest litrow<br />       temp2 = str.SubString2(1,4)<br />          litr=temp2<br />    Label5.text= temp2 &amp; &quot; L&quot;<br /> SeekBar1.value = litr<br /> litr1=litr<br /><br />   End If[/syntax]<br />To tylko tak w skrócie<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1519">grzeniu 73</a> — 2 sty 2016, o 11:54</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[driver0207]]></name></author>
<updated>2016-01-02T11:26:46+01:00</updated>
<published>2016-01-02T11:26:46+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149401#p149401</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149401#p149401"/>
<title type="html"><![CDATA[Re: komenda przekierowująca dane]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149401#p149401"><![CDATA[
Tak wiem zalogowałem się ale mam komunikat :<br /><br />This page may have been removed.<br />If you are trying to download a file and have purchased Basic4android then please contact <!-- e --><a href="mailto:support@basic4ppc.com">support@basic4ppc.com</a><!-- e --> and mention your user name<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2199">driver0207</a> — 2 sty 2016, o 11:26</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[sz4t4n]]></name></author>
<updated>2016-01-02T07:53:15+01:00</updated>
<published>2016-01-02T07:53:15+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149395#p149395</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149395#p149395"/>
<title type="html"><![CDATA[Re: komenda przekierowująca dane]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149395#p149395"><![CDATA[
Musisz się zalogować na tyn forum do którego podesłałem linka. Na pewno Ci się w przyszłości nie jeden raz przyda to forum więc warto. <a href="https://www.b4x.com/android/forum/attachments/stringfunctions-1-05-zip.23502/"  class="postlink">https://www.b4x.com/android/forum/attachments/stringfunctions-1-05-zip.23502/</a><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=377">sz4t4n</a> — 2 sty 2016, o 07:53</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[driver0207]]></name></author>
<updated>2016-01-01T22:40:41+01:00</updated>
<published>2016-01-01T22:40:41+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149371#p149371</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149371#p149371"/>
<title type="html"><![CDATA[Re: komenda przekierowująca dane]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149371#p149371"><![CDATA[
sz4t4n<br />Nie moge pobrać tej biblioteki . Możesz zapodać jakiś link?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2199">driver0207</a> — 1 sty 2016, o 22:40</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[matekogon]]></name></author>
<updated>2016-01-01T20:53:50+01:00</updated>
<published>2016-01-01T20:53:50+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149357#p149357</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149357#p149357"/>
<title type="html"><![CDATA[Re: komenda przekierowująca dane]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149357#p149357"><![CDATA[
Albo możesz użyć  do analizy stringa funkcję  regex.split(&quot;u=&quot;,msg)<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1380">matekogon</a> — 1 sty 2016, o 20:53</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[sz4t4n]]></name></author>
<updated>2016-01-01T18:20:47+01:00</updated>
<published>2016-01-01T18:20:47+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149348#p149348</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149348#p149348"/>
<title type="html"><![CDATA[Re: komenda przekierowująca dane]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149348#p149348"><![CDATA[
Zainteresuj się tą biblioteką -&gt;<a href="https://www.b4x.com/android/forum/threads/string-functions.10365/"  class="postlink">https://www.b4x.com/android/forum/threads/string-functions.10365/</a>. Możesz sprawdzić czy w nadlatujących danych dwa pierwsze znaki to &quot;u=&quot; i jeżeli warunek będzie spełniony to wyświetl resztę danych ( wytnij string od pozycji 2) w textbox.<br /><br />np.<br /><br />[syntax=basic4gl]w globals dodaj <br />Dim sf As StringFunctions<br />sf.Initialize<br /><br />a następnie w odbiorze danych dodaj taki warunek<br /><br /><br />If ( sf.Left(msg,2) = &quot;u=&quot;) Then  'sprawdź czy dwa pierwsze znaki to &quot;u=&quot; jeżeli się zgadza to:<br /><br />EditText1.Text = sf.Right(msg,msg.Length-2) 'wytnij ze stringa msg wszystko oprócz dwóch pierwszych znaków i umieść je w text box<br /><br />End If[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=377">sz4t4n</a> — 1 sty 2016, o 18:20</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[driver0207]]></name></author>
<updated>2016-01-01T15:33:58+01:00</updated>
<published>2016-01-01T15:33:58+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149328#p149328</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149328#p149328"/>
<title type="html"><![CDATA[komenda przekierowująca dane]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=14050&amp;p=149328#p149328"><![CDATA[
Witam . Mam takie mały problem . Otóż zrobiłem sobie aplikacje do sterowania centralnym zamkiem i ogrzewaniem postojowym.<br />Samo sterowanie działa lecz chciałem by procesor wysyłam mi do telefonu dwie zmienne. <br />-napiecie zasilania (pomiar adc)<br />-temperaturę (ds18b20)<br />Od strony procesora mam wszystko opanowane i sprawdzone w terminalu.<br /><br />Chciałem rozwiązać to w taki sposób że gdy nadleci komenda od strony procka &quot;u=&quot; wtedy kolejne dane będą wyświetlane w polu EditText<br />Mam to rozwiązane w ten sposób:<br />[syntax=basic4gl]Sub udpsrv_PacketArrived (Packet As UDPPacket)<br />Dim msg As String<br />msg = BytesToString(Packet.Data, Packet.Offset, Packet.Length,&quot;UTF8&quot;)<br />If msg = &quot;heather_on&quot;  Then <br />ogrzewanie_stan = True<br />wlacz.Text= &quot;WYŁĄCZ&quot;<br />STAN_OGRZEWANIE.Text = &quot;WŁĄCZONE&quot;<br />End If<br />If msg = &quot;heather_off&quot; Then<br />ogrzewanie_stan = False<br />wlacz.Text= &quot;WŁĄCZ&quot;<br />STAN_OGRZEWANIE.Text = &quot;WYŁĄCZONE&quot;<br />End If<br />If msg = &quot;lock&quot; Then<br />centralny_stan = True<br />otworz.Text = &quot;OTWÓRZ&quot;<br />STAN_ZAMEK.Text = &quot;ZAMKNIĘTY&quot;<br />End If<br />If msg = &quot;unlock&quot; Then<br />centralny_stan = False<br />otworz.Text = &quot;ZAMKNIJ&quot;<br />STAN_ZAMEK.Text = &quot;OTWARTY&quot;<br />End If<br />If msg = &quot;connect&quot; Then<br />wlacz.Enabled = True<br />otworz.Enabled = True<br />End If<br />If msg = &quot;u= &quot; Then<br />napiecie.Text = napiecie.Text &amp; msg<br />End If<br />End Sub[/syntax]<br /><br /><br />Nie wiem jak to rozwiązać:(<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2199">driver0207</a> — 1 sty 2016, o 15:33</p><hr />
]]></content>
</entry>
</feed>