Skip to content

Commit

Permalink
Merge pull request #527 from blinker-iot/dev_3.0
Browse files Browse the repository at this point in the history
update codes, upgrade BLINKER BLE codes
  • Loading branch information
i3water authored Sep 10, 2019
2 parents 7b0556b + 5547dd2 commit 71dcdf6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/BlinkerSerialBLE.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,23 +128,23 @@ class BlinkerSerialBLE : public BlinkerApi
}
else if (ss_rx_pin == 19 && ss_tx_pin == 18){
BApi::begin();
Serial.begin(ss_baud);
Serial1.begin(ss_baud);
Transp.begin(Serial1, true);
transport(Transp);
BLINKER_LOG(BLINKER_F("SerialBLE initialized..."));
return;
}
else if (ss_rx_pin == 17 && ss_tx_pin == 16){
BApi::begin();
Serial.begin(ss_baud);
Serial2.begin(ss_baud);
Transp.begin(Serial2, true);
transport(Transp);
BLINKER_LOG(BLINKER_F("SerialBLE initialized..."));
return;
}
else if (ss_rx_pin == 15 && ss_tx_pin == 14){
BApi::begin();
Serial.begin(ss_baud);
Serial3.begin(ss_baud);
Transp.begin(Serial3, true);
transport(Transp);
BLINKER_LOG(BLINKER_F("SerialBLE initialized..."));
Expand Down

0 comments on commit 71dcdf6

Please sign in to comment.