Skip to content

Commit

Permalink
#41 send +COPS command after HFP connection setup
Browse files Browse the repository at this point in the history
  • Loading branch information
dl1com committed Apr 27, 2020
1 parent b2ae4c5 commit 4bf2a3c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/wt32i.cpp
Expand Up @@ -738,6 +738,11 @@ ResultType WT32i::handleMessage_HFPAG_UNKNOWN(iWrapMessage msg) {
ResultType WT32i::indicateNetworkAvailable() {
setStatus("service", "1");
setStatus("signal", "5");

// Workaround for iWrap 6.1.0, as AT+COPS message does not get exposed to us
// we have to send +COPS message on our own
serial_->println("+COPS: 0,0,\"BTTRX\"");
sendOK();
return kSuccess;
}

Expand Down

0 comments on commit 4bf2a3c

Please sign in to comment.