<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Blynk in UIFlow]]></title><description><![CDATA[<p dir="auto">Are the blynk blocks fully functional as is in the most recent version of UIFlow? I can receive from my device on my app, but I do not seem to be able to send to or receive any data on my device from my phone/app. I tried a simple text field and I tried a couple of sliders and they do not seem to transmit the data to the device. It could very easily be a user error. I was looking for more information on here and the only thing I saw was maybe in 1.52 or so, there was maybe an issue with where the init statement was getting placed.<br />
Thanks</p>
]]></description><link>https://community.m5stack.com/topic/2729/blynk-in-uiflow</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 16:17:52 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/2729.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 12 Jan 2021 12:31:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Blynk in UIFlow on Fri, 19 Mar 2021 00:12:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a> said in <a href="/post/13059">Blynk in UIFlow</a>:</p>
<blockquote>
<p dir="auto">I came across a video last night (lost link) that shows that it should be possible to run ESPnow and WIFI at the same time on an esp32. apparently all you need to do is to set ESPNOW to work on a different channel to the WIFI.</p>
</blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a> Good hint. I will check my router to prevent using the channel I selected as common for the devices.</p>
]]></description><link>https://community.m5stack.com/post/13111</link><guid isPermaLink="true">https://community.m5stack.com/post/13111</guid><dc:creator><![CDATA[anvalin]]></dc:creator><pubDate>Fri, 19 Mar 2021 00:12:49 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk in UIFlow on Thu, 18 Mar 2021 06:02:05 GMT]]></title><description><![CDATA[<p dir="auto">Thank you, <a class="plugin-mentions-user plugin-mentions-a" href="/user/iamliubo" aria-label="Profile: IAMLIUBO">@<bdi>IAMLIUBO</bdi></a><br />
I have confirmed that it works fine with MicroPython generated from Blynk Blockly.</p>
]]></description><link>https://community.m5stack.com/post/13090</link><guid isPermaLink="true">https://community.m5stack.com/post/13090</guid><dc:creator><![CDATA[inasawa]]></dc:creator><pubDate>Thu, 18 Mar 2021 06:02:05 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk in UIFlow on Thu, 18 Mar 2021 04:32:33 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/ksprayberry" aria-label="Profile: ksprayberry">@<bdi>ksprayberry</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/inasawa" aria-label="Profile: inasawa">@<bdi>inasawa</bdi></a> ,<br />
Sorry for that.The bug should be resolved, it was our fault, please try again and sorry again.</p>
]]></description><link>https://community.m5stack.com/post/13088</link><guid isPermaLink="true">https://community.m5stack.com/post/13088</guid><dc:creator><![CDATA[IAMLIUBO]]></dc:creator><pubDate>Thu, 18 Mar 2021 04:32:33 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk in UIFlow on Wed, 17 Mar 2021 06:13:47 GMT]]></title><description><![CDATA[<p dir="auto">I came across a video last night (lost link) that shows that it should be possible to run ESPnow and WIFI at the same time on an esp32. apparently all you need to do is to set ESPNOW to work on a different channel to the WIFI.</p>
]]></description><link>https://community.m5stack.com/post/13059</link><guid isPermaLink="true">https://community.m5stack.com/post/13059</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Wed, 17 Mar 2021 06:13:47 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk in UIFlow on Wed, 17 Mar 2021 01:32:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/anvalin" aria-label="Profile: anvalin">@<bdi>anvalin</bdi></a><br />
Excellent. Seems like you have a nice a setup of products and functionality. Glad you got it all sorted out.</p>
]]></description><link>https://community.m5stack.com/post/13054</link><guid isPermaLink="true">https://community.m5stack.com/post/13054</guid><dc:creator><![CDATA[world101]]></dc:creator><pubDate>Wed, 17 Mar 2021 01:32:03 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk in UIFlow on Tue, 16 Mar 2021 22:27:27 GMT]]></title><description><![CDATA[<p dir="auto">I managed to send values via UART to an additional StickC - this will act as my Blynk relay. Will try to use an AtomLite for this purpose later on. And all other devices share data via ESPNow hassle free. Problem solved. Thanks again.</p>
]]></description><link>https://community.m5stack.com/post/13051</link><guid isPermaLink="true">https://community.m5stack.com/post/13051</guid><dc:creator><![CDATA[anvalin]]></dc:creator><pubDate>Tue, 16 Mar 2021 22:27:27 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk in UIFlow on Mon, 15 Mar 2021 20:01:17 GMT]]></title><description><![CDATA[<p dir="auto">Thanks <a class="plugin-mentions-user plugin-mentions-a" href="/user/world101" aria-label="Profile: world101">@<bdi>world101</bdi></a> and <a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a> for your aid. Helps me understanding procedures. Regarding the parallel use of ESPNow and Blynk - my current project comprises 4 points of sensor readings in my garden - water levels, solar battery voltage, moisture readings from AtomLites via ESP to central devices (StickC and a Core later on) for processing (relays) - and an hourly update of values to my Blynk app. As said this works without Blynk being initiated in setup or main loop but a timer. I wonder if there's any other procedure to terminate the (http) Blynk connection after send other than executing a "machine.reset()" and re-run the main loop. Or maybe add another device receiving values via another method than wifi (ideas?) and sending to Blynk?</p>
<p dir="auto">Digging into this problem I already purchased two <a href="http://LoraWAN.COM" target="_blank" rel="noopener noreferrer nofollow ugc">LoraWAN.COM</a> bases to transmit values via TTN and use a Core at home as dashboard and Blynk "gateway". But this seems overwhelming right now and currently Flow modules are only working with the older (blue) bases. Hopefully there's an update coming soon.</p>
]]></description><link>https://community.m5stack.com/post/13034</link><guid isPermaLink="true">https://community.m5stack.com/post/13034</guid><dc:creator><![CDATA[anvalin]]></dc:creator><pubDate>Mon, 15 Mar 2021 20:01:17 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk in UIFlow on Mon, 15 Mar 2021 16:54:05 GMT]]></title><description><![CDATA[<p dir="auto">In theory, ESP-NOW should prevent anything else working as it takes over the WIFI transmitter and connects it to another esp32 device preventing it connecting to the wifi.<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/world101" aria-label="Profile: world101">@<bdi>world101</bdi></a> you are correct, ESPnow turns the device in to a point to point devices using the transmitter and preventing wifi coms.</p>
]]></description><link>https://community.m5stack.com/post/13031</link><guid isPermaLink="true">https://community.m5stack.com/post/13031</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Mon, 15 Mar 2021 16:54:05 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk in UIFlow on Mon, 15 Mar 2021 15:38:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/anvalin" aria-label="Profile: anvalin">@<bdi>anvalin</bdi></a></p>
<p dir="auto">I'm curious about your use of Blynk and ESPNow within the same program. I think they are overstepping on each other (blocking/flooding) and that is why you implemented a brute force to do the reset every hour.  Blynk is selfish on timing and in general, you should always keep your Loop clean with just Blynk.run inside it.</p>
<p dir="auto"><a href="http://help.blynk.cc/en/articles/2091699-keep-your-void-loop-clean" target="_blank" rel="noopener noreferrer nofollow ugc">http://help.blynk.cc/en/articles/2091699-keep-your-void-loop-clean</a><br />
Even though that article is for Arduino, the same concepts with would apply to uiFlow/uPython.</p>
<p dir="auto">I would also think that if you have Blynk, you don't really need ESPNow (or vice versa), as they somewhat achieve the same thing.  Though, I look at ESPNow as more of a point-to-point/multipoint communication protocol between hardware devices and Blynk is good if you want to have a smartphone app for visualizations/control vs. device screens and buttons. However, transmitting and receiving sensor data can be achieved by both protocols, so why duplicate?  Again, just curious about your implementation... no disrespect.</p>
]]></description><link>https://community.m5stack.com/post/13027</link><guid isPermaLink="true">https://community.m5stack.com/post/13027</guid><dc:creator><![CDATA[world101]]></dc:creator><pubDate>Mon, 15 Mar 2021 15:38:56 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk in UIFlow on Sat, 13 Mar 2021 22:06:56 GMT]]></title><description><![CDATA[<p dir="auto">Hello. I'd like to inquire about if you experience any problems when using Blynk and EspNow with the native Blynk blocks in Flow? I ran into the problem that EspNow stops receiving when Blynk is initialized either in setup or main loop but this occured with a StickC+ and a Core, using custom blocks. I wasn't aware about the implemenentation of Blynk blocks for Fire and Core2 in Flow until I found this post.</p>
<p dir="auto">For the time being I use a brute force method as workaround, calling Blynk init and sending in a timer hourly and then resetting the StickC+ it's running on. But this method causes stress for a connected relay I'd like to avoid.</p>
]]></description><link>https://community.m5stack.com/post/12989</link><guid isPermaLink="true">https://community.m5stack.com/post/12989</guid><dc:creator><![CDATA[anvalin]]></dc:creator><pubDate>Sat, 13 Mar 2021 22:06:56 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk in UIFlow on Fri, 15 Jan 2021 13:32:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/inasawa" aria-label="Profile: inasawa">@<bdi>inasawa</bdi></a> Thank you very much for the information and help.</p>
]]></description><link>https://community.m5stack.com/post/11762</link><guid isPermaLink="true">https://community.m5stack.com/post/11762</guid><dc:creator><![CDATA[fraramon]]></dc:creator><pubDate>Fri, 15 Jan 2021 13:32:40 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk in UIFlow on Fri, 15 Jan 2021 13:27:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/inasawa" aria-label="Profile: inasawa">@<bdi>inasawa</bdi></a> I am using the thonny editor for python code and it works great.</p>
]]></description><link>https://community.m5stack.com/post/11761</link><guid isPermaLink="true">https://community.m5stack.com/post/11761</guid><dc:creator><![CDATA[fraramon]]></dc:creator><pubDate>Fri, 15 Jan 2021 13:27:20 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk in UIFlow on Fri, 15 Jan 2021 13:25:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/inasawa" aria-label="Profile: inasawa">@<bdi>inasawa</bdi></a> In this way, it works perfect.</p>
]]></description><link>https://community.m5stack.com/post/11760</link><guid isPermaLink="true">https://community.m5stack.com/post/11760</guid><dc:creator><![CDATA[fraramon]]></dc:creator><pubDate>Fri, 15 Jan 2021 13:25:59 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk in UIFlow on Sat, 16 Jan 2021 04:51:29 GMT]]></title><description><![CDATA[<p dir="auto">I think this BLE Blynk library is similar to the one used in UIFlow.<br />
<a href="https://github.com/vshymanskyy/blynk-library-python/blob/master/examples/hardware/PyCom_BLE.py" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/vshymanskyy/blynk-library-python/blob/master/examples/hardware/PyCom_BLE.py</a></p>
<p dir="auto">There was a problem with a continuous call to blynk.virtual_write. blynk.virtual_write calls _write in class BlynkBLE, _write concatenates the data and sends the data when run() is called. The following code is part of class BlynkBLE.</p>
<pre><code>    def _write(self, data):
        self.bout += data

    def run(self):
        self.process()
        while len(self.bout):
            data = self.bout[:20]
            self.bout = self.bout[20:]
            print('&lt;', data)
            self.tx.value(data)
</code></pre>
<p dir="auto">If you call multiple blynk.virtual_write() in a row as follows, data1 and data2 will be concatenated, and when run() is called, the concatenated data will be sent.</p>
<pre><code>blynk.virtual_write(1, data1)
blynk.virtual_write(2, data2)
</code></pre>
<p dir="auto">In this case, the iOS Blynk app was unable to get the second data. Therefore, I added the call "blynk._blynk.run()" immediately after blynk.virtual_write as shown below.</p>
<pre><code>blynk.virtual_write(1, data1)
blynk._blynk.run()
blynk.virtual_write(2, data2)
blynk._blynk.run()
</code></pre>
]]></description><link>https://community.m5stack.com/post/11759</link><guid isPermaLink="true">https://community.m5stack.com/post/11759</guid><dc:creator><![CDATA[inasawa]]></dc:creator><pubDate>Sat, 16 Jan 2021 04:51:29 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk in UIFlow on Thu, 11 Feb 2021 14:42:29 GMT]]></title><description><![CDATA[<p dir="auto">In UIFlow 1.7.1/1.7.2, there seems to be an inconsistency between Blockly (generated Python code) and the Blynk library. The following is the created Blockly code.</p>
<p dir="auto"><img src="/assets/uploads/files/1613054216695-%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2021-02-11-23.08.04-resized.png" alt="0_1613054214517_スクリーンショット 2021-02-11 23.08.04.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">And the following is the generated Python code for M5Stack Core2.</p>
<pre><code>from m5stack import *
from m5stack_ui import *
from uiflow import *
from ble import blynk

screen = M5Screen()
screen.clean_screen()
screen.set_screen_bg_color(0xFFFFFF)

vr = None
count = None
vw = None
value = None

def blynk_write():
  global vr, count, vw, value
  print('connected')

  pass

def blynk_write():
  global vr, count, vw, value
  print('disconnected')

  pass

def blynk_write(*args):
  global vr, count, vw, value
  vr = args[0]
  count = count + 1
  print([vr, count])
  blynk.virtual_write(int(vr), count)

  pass

def blynk_write(*args):
  global vr, count, vw, value
  vw, value = args[0], args[1]
  print([vw, value])

  pass

blynk.init('Blynk Test', '...token...', blynk.BLE)
blynk.handle_event(blynk_write, 'connected')
blynk.handle_event(blynk_write, 'disconnected')
blynk.handle_event(blynk_write, 'write v*')
blynk.handle_event(blynk_write, 'read v*')
count = 0
</code></pre>
<p dir="auto">I have modified as follows.</p>
<ul>
<li>make the event function name unique</li>
<li>change the order of the arguments in blynk.handle_event</li>
</ul>
<p dir="auto">Then, it's works.</p>
<pre><code>from m5stack import *
from m5stack_ui import *
from uiflow import *
from ble import blynk

screen = M5Screen()
screen.clean_screen()
screen.set_screen_bg_color(0xFFFFFF)

vr = None
count = None
vw = None
value = None

def blynk_connected():
  global vr, count, vw, value
  print('connected')

  pass

def blynk_disconnected():
  global vr, count, vw, value
  print('disconnected')

  pass

def blynk_read(*args):
  global vr, count, vw, value
  vr = args[0]
  count = count + 1
  print([vr, count])
  blynk.virtual_write(int(vr), count)

  pass

def blynk_write(*args):
  global vr, count, vw, value
  vw, value = args[0], args[1]
  print([vw, value])

  pass

blynk.init('Blynk Test', 'wbZdMJ8V1QCuYdePAqrlmt4iizSAX1j7', blynk.BLE)
blynk.blynkBLE.ble.config(gap_name='Blynk Test')
blynk.handle_event('connected',    blynk_connected)
blynk.handle_event('disconnected', blynk_disconnected)
blynk.handle_event('write v*',     blynk_write)
blynk.handle_event('read v*',      blynk_read)
count = 0
</code></pre>
]]></description><link>https://community.m5stack.com/post/11757</link><guid isPermaLink="true">https://community.m5stack.com/post/11757</guid><dc:creator><![CDATA[inasawa]]></dc:creator><pubDate>Thu, 11 Feb 2021 14:42:29 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk in UIFlow on Thu, 14 Jan 2021 16:19:47 GMT]]></title><description><![CDATA[<p dir="auto">I have a M5Stack FIRE device and it also happens to me, I can send data to my phone, but my phone cannot to the device.</p>
]]></description><link>https://community.m5stack.com/post/11753</link><guid isPermaLink="true">https://community.m5stack.com/post/11753</guid><dc:creator><![CDATA[fraramon]]></dc:creator><pubDate>Thu, 14 Jan 2021 16:19:47 GMT</pubDate></item><item><title><![CDATA[Reply to Blynk in UIFlow on Wed, 13 Jan 2021 12:58:03 GMT]]></title><description><![CDATA[<p dir="auto">Is the only thing missing in the included blocks a blynk.run() statement? I see that in other coding examples, but I do not see this in any of the created code from UIFlow.</p>
]]></description><link>https://community.m5stack.com/post/11701</link><guid isPermaLink="true">https://community.m5stack.com/post/11701</guid><dc:creator><![CDATA[ksprayberry]]></dc:creator><pubDate>Wed, 13 Jan 2021 12:58:03 GMT</pubDate></item></channel></rss>