Connect Seeeduino Studio Wifi Shield RN-171 to Blynk

Is there any possibility to connect RN171 Wifi Shield by Seeeduino Studio to Blynk ? I wish to control LED remotely :slightly_smiling_face:

Have you tried this example

?

That’s exactly what I tried. It keeps saying Failed. I also tried multiple networks but unsuccessfull.

I tried the library for RN 171 and the connection works.
My struggle now is how to connect it to Blynk with the code below. Can you help me with this part? Template in Blynk is ready. I need to control LED on PIN 13. Thanks!

#include <Arduino.h>
#include <SoftwareSerial.h>
#include "WiFly.h"

#define SSID      "MarosM"
#define KEY       "..."
#define AUTH      WIFLY_AUTH_WPA2_PSK

// Pins' connection
// Arduino       WiFly
//  2    <---->    TX
//  3    <---->    RX
SoftwareSerial uart(2, 3);
WiFly wifly(&uart);

void setup() {
  uart.begin(9600);

  Serial.begin(9600);
  Serial.println("--------- WIFLY TEST --------");
  
  // wait for initilization of wifly
  delay(3000);
  
  uart.begin(9600);     // WiFly UART Baud Rate: 9600
  
  wifly.reset();
  
  Serial.println("Join " SSID );
  if (wifly.join(SSID, KEY, AUTH)) {
    Serial.println("OK");
  } else {
    Serial.println("Failed");
  }
  
  // get WiFly params
  //wifly.sendCommand("get everthing\r");
  char c;
  while (wifly.receive((uint8_t *)&c, 1, 300) > 0) {
    Serial.print((char)c);
  }
  
  if (wifly.commandMode()) {
    Serial.println("Enter command mode. Send \"exit\"(with \\r) to exit command mode");
  }
}

void loop() {
  while (wifly.available()) {
    Serial.write(wifly.read());
  }
  
  while (Serial.available()) {
    wifly.write(Serial.read());
  }
}

May I ask you why are you using this shield specifically ?
You can use a more commonly used shield like the esp-01. Or switch your hardware to nodemcu or esp32, which is the most recommended approach.

In our organization we have around 20 of RN-171 and I don’t want to throw them away. I though connect them to IoT and create a meaningful project would be great.

Have you tried adding

#include <BlynkSimpleWiFly.h>

and

  Blynk.begin(auth, wifly, ssid, pass);

and

Blynk.run();

to your working sketch ?

Got something like this.

Here is the code:
#define BLYNK_TEMPLATE_ID β€œβ€¦β€
#define BLYNK_DEVICE_NAME β€œβ€¦β€
#define BLYNK_AUTH_TOKEN β€œβ€¦β€

#include <Arduino.h>
#include <SoftwareSerial.h>
#include "WiFly.h"
#include <BlynkSimpleWiFly.h>

char auth[] = BLYNK_AUTH_TOKEN;
char ssid[] = "MarosM";
char pass[] = "...";

SoftwareSerial uart(2, 3);
WiFly wifly(&uart);

void setup() {
  uart.begin(9600);
  Serial.begin(9600);
  
  // wait for initilization of wifly
  delay(3000);
  
  wifly.reset();
  
  // get WiFly params
  //wifly.sendCommand("get everthing\r");
  char c;
  while (wifly.receive((uint8_t *)&c, 1, 300) > 0) {
Serial.print((char)c);
  }
Blynk.begin(auth, wifly, ssid, pass);
}

void loop() {
  Blynk.run();
}

try something like this

#define BLYNK_TEMPLATE_ID "xxxxxxxx"
#define BLYNK_DEVICE_NAME "xxxxxxxx"
#define BLYNK_AUTH_TOKEN "xxxxxxxxxxxxxxxxxx"


#include <Arduino.h>
#include <SoftwareSerial.h>
#include "WiFly.h"
#include <BlynkSimpleWiFly.h>



#define SSID      "Your-SSID"
#define KEY       "passphrase"
#define AUTH      WIFLY_AUTH_WPA2_PSK

char auth[] = BLYNK_AUTH_TOKEN;

// Pins' connection
// Arduino       WiFly
//  2    <---->    TX
//  3    <---->    RX
SoftwareSerial uart(2, 3);
WiFly wifly(&uart);

void setup() {
  uart.begin(9600);

  Serial.begin(9600);
  Serial.println("--------- WIFLY TEST --------");
  
  // wait for initilization of wifly
  delay(3000);
  
  uart.begin(9600);     // WiFly UART Baud Rate: 9600
  
  wifly.reset();
  
  Serial.println("Join " SSID );
  if (wifly.join(SSID, KEY, AUTH)) {
    Serial.println("OK");
  } else {
    Serial.println("Failed");
  }
  
  // get WiFly params
  wifly.sendCommand("get everthing\r");
  char c;
  while (wifly.receive((uint8_t *)&c, 1, 300) > 0) {
    Serial.print((char)c);
  }
  
  if (wifly.commandMode()) {
    Serial.println("Enter command mode. Send \"exit\"(with \\r) to exit command mode");
  }
  Blynk.begin(auth, wifly, SSID, KEY);
}

void loop() {

  Blynk.run();
  
  while (wifly.available()) {
    Serial.write(wifly.read());
  }
  
  while (Serial.available()) {
    wifly.write(Serial.read());
  }
}