We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I'm trying to get USSD code response from modem but method sendUSSDImpl not working (always return empty string).
I'm using ESP32 WROOM32 using HW Serial2 and NEOWAY M590 REVISION 01.30c
This code not working:
String sendUSSDImpl(const String& code) { sendAT(GF("+CSCS=\"GSM\"")); waitResponse(); sendAT(GF("+CUSD=1,\""), code, GF("\",15")); int8_t state = waitResponse(10000L); String str = String(stream.available()); return "Received:" + str + ", state:" + String(state); }
Return always: Received:0, state:1
This code working good:
String sendUSSDImpl(const String& code) { sendAT(GF("+CSCS=\"GSM\"")); waitResponse(); sendAT(GF("+CUSD=1,\""), code, GF("\",15")); delay(10000); int8_t state = 0; String str = String(stream.available()); return "Received:" + str + ", state:" + String(state); }
Return always: Received:86, state:0
I can't read data by stream.readString(); if waitResponse() is before.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, I'm trying to get USSD code response from modem but method sendUSSDImpl not working (always return empty string).
I'm using ESP32 WROOM32 using HW Serial2 and NEOWAY M590 REVISION 01.30c
This code not working:
Return always: Received:0, state:1
This code working good:
Return always: Received:86, state:0
I can't read data by stream.readString(); if waitResponse() is before.
The text was updated successfully, but these errors were encountered: