首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >HM-10返回欧元符号

HM-10返回欧元符号
EN

Stack Overflow用户
提问于 2016-07-11 01:25:42
回答 0查看 497关注 0票数 0

我正在使用HM-10 copy CC4A-1模块。我把它和Arduino Uno R3连接起来,在挣扎了很久之后,它终于连接上了。我用Arduino串行监视器执行了一些AT命令,执行AT+RENEW命令后,它突然停止工作。我还试着执行AT+BAUD command but it returned error before executing AT+RENEW.

This is the output of Arduino Serial Monitor while sending data from HMBLE Terminal Android Application

代码语言:javascript
复制
#include <SoftwareSerial.h>

SoftwareSerial BTSerial(2, 3); //RX|TX


void setup(){
  Serial.begin(9600);
  BTSerial.begin(9600); // default baud rate
  while(!Serial); //if it is an Arduino Micro
  Serial.println("AT commands: ");
}

void loop(){
  //read from the HM-10 and print in the Serial
  if(BTSerial.available())
    Serial.write(BTSerial.read());

  //read from the Serial and print to the HM-10
  if(Serial.available())
    BTSerial.write(Serial.read());
}

This is what is sent from Android Application

EN

回答

页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38294594

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档