HM-10- setting transmit power to +6 DB

Hi

I bought a HM-10 bluetooth module (similar to HC-05) because it is advertised to have a range of up to 100 meters. To get to 100 meter range however, I need to change the default power setting from 0 dbm to +6 dbm. The HM-10 command to reset the transmit power output is 'AT+POWE3' (inquiry is AT+POWE?).

I'm assuming I need to set this every time I power up. The spec says nothing about non-volatile memory.

Anyone have examples of this in C++?

thanks
Steve Flora

How much code have you written so far, are you able to post it ?

People will find it much easier to help you if you post your code.

Incidently tranmit power is indicated in dBm. as in +6dBm.

This is my test code and it works.

I’m assuming it is a 1 liner to set the power and someone has an escape sequence or something to set it.

I see ‘hi’ on my bluetooth monitor app on my phone.

#include <SoftwareSerial.h>
SoftwareSerial mySerial(8,9); //

void setup()
{
mySerial.begin(9600);
Serial.begin(9600);
delay(100);
}

void loop()
{
if (Serial.available()>0)
mySerial.write(Serial.read());

if (mySerial.available()>0)
Serial.write(mySerial.read());

Serial.println(“test1”);
mySerial.print(“hi”);

delay (1000);
}