Blues/Notecard with Bynk

Hi. Doing some prototyping with Notecard + Notecarrier F and all is working well. I am thinking of migrating an application from Wifi to Notecard/Blues that uses Blynk IOT as both UI (via the Blynk Android app) and their backend. The application is a battery powered wireless air quality monitor that pulls samples from several sensors and also records GPS position every few seconds. I also use Thingspeak as datastore and API. Do you have any experience using Blynk or another synchronous client app with Notecard/Blues? My concern is reliability of Notecard to be continuously connected to the Internet as I currently do through Wifi, not in periodic/batch mode. Thanks.

Hi @drewcssv ,

The cellular Notecard DOES offer a continuous connection to the cell towers, via {"req":"hub.set","mode":"contiuous"}. This will offer the fastest data egress available, but this is a very battery intensive mode to operate in. As such, we recommend having mains power available to your device. To achieve the same quickness during ingress, we have an optional "sync":true parameter that can be supplied to the hub.set command.

To learn more about this type of communication, checkout our Minimizing Latency Guide.

Hey @drewcssv,

Welcome to the Blues community! We’re glad you’re here and I look forward to seeing how your project migration goes!

I’ve not personally used Blynk in some time, and haven’t tried it with the Notecard, but if you follow Zak’s continuous mode instructions, you should be able to give it a shot. Let us know how it goes, and if you run into any stumbling blocks!

Hi.

It will work just fine with Blynk but you will need to go via something like Node-RED to convert the inbound MQTT message from Blues to Blynk API calls. Not sure what value you get out of the “always connected” but then I dont know anything about your application. Either way it’s irrelevant to the question of being able to use Blynk.

Hi, thanks for the tips. Many Blynk users do indeed use Node-RED with MQTT. The value of Blynk to my application is a highly-customizable Android/iOS app that I can quickly build and deploy without needing Android, Swift or Xcode skills. It is this app that needs a constant connection, similar to, say, a Bluetooth connected app that monitors a realtime sensing device. When students using the air quality monitor sense particulates or CO2 gas the app instantly displays data and graphs showing the values in realtime. The data is also sent to the cloud and stored in Thingspeak.

Drew

Hi Drew,

Not sure I understand completely so read my reply with that in mind.

Blynk is a great App and I have been using it a lot for several years. It however does not require an always up connection. However if I understand correctly your specific use case does require always on.

You do have the option to use the WiFi Notecard in the case that you have wifi available to the node(s) and this would be the best in my opinion for an always on requirement. Should you need connectivity beyond the reach of wifi you can swap to the cellular notecard but I would avoid the always on scenario if your specific use case can work with some lag. As mentioned the Blynk platform does not care either way but it will not be realtime.

The cellular connectivity with the cellular notecard is robust even in always on mode but there is a cost associated with always on in the cellular world.

Hope this helps,
Serge

2 Likes

Can someone please help me understand how to execute a HTTP GET Route on Notehub?

I would also like to use my Notecard with Blynk. I want to create a Route (webhook) on Notehub to transform data sent by my Notecard and then execute a HTTP GET on Blynk. A HTTP GET on Blynk is the only way to send data for multiple Blynk datastreams.

Hi @markwkiehl,

There are two ways to get event data out of Notehub:

  1. Notehub Routes let you POST data to an endpoint that you define.
  2. The Notehub Event API allows you to “pull” data out of Notehub from a remote service with an HTTP GET.

Does that make sense? Let me know if you have any more questions or if I can clear up any issues.

Rob

Thank you Rob for the clarification.

It doesn’t seem like I can push data from my Notecard to an external cloud service via a HTTP GET. It is unfortunate that Blynk requires an HTTP GET to update the values of multiple datastreams.

What about using a ‘web.get’ Web Transaction to perform a HTTP GET from my Notecard to Blynk? I need to configure the Route as a proxy.

IT WORKS! I created a Route that is configured as a proxy. Then I use a Web Transaction web.get with the ‘name’ set to the URL parameters that contain the data (payload).

A complete example / tutorial has been posted to the following URL:

https://savvymicrocontrollersolutions.info/blues_io.php?blog=blues-io-route-blynk

1 Like