Nodemcu and Bluetooth module

Submitted by Cjjjjjjj on

I want to connect Bluetooth module in my nodemcu, I am currently using blynk app for my iot project my question is can I combine the Bluetooth codes in my iot codes?

What is your planning?

  Joined February 12, 2018      696
Monday at 02:11 PM

You can use a bluetooth module with nodemcu for your projects, but please tell your project requirements, so that we can recommend a suitable solution for that.

  Joined August 22, 2019      125
Thursday at 12:29 PM

The requirements are nodemcu, Bluetooth module. my relay is connected in my nodemcu and I'm currently controlling it in my blynk app, I just want to connect the Bluetooth module in my nodemcu to control relay using Bluetooth terminal app my problem is where should I put the code for Bluetooth.
Here's my code in blynk

#define BLYNK_PRINT Serial
#include
#include

char auth[] = "xxxxxxx";
char ssid[] = "xxxxxxx";
char pass[] = "xxxxxxx";

void setup()
{
Serial.begin(9600);
Blynk.begin(auth, ssid, pwd);
}

void loop()
{
Blynk.run();

}

  Joined February 21, 2020      7
Friday at 09:50 AM