8000 Replace boolean type with bool in examples · arduino-libraries/GSM@fd42fac · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Sep 30, 2021. It is now read-only.

Commit fd42fac

Browse files
committed
Replace boolean type with bool in examples
This is part of a move to encourage use of the standard bool type over Arduino's non-standard boolean type alias.
1 parent 0db69d3 commit fd42fac

File tree

11 files changed

+12
-12
lines changed

11 files changed

+12
-12
lines changed

examples/GsmWebClient/GsmWebClient.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void setup() {
4646

4747
Serial.println("Starting Arduino web client.");
4848
// connection state
49-
boolean notConnected = true;
49+
bool notConnected = true;
5050

5151
// After starting the modem with GSM.begin()
5252
// attach the shield to the GPRS network with the APN, login and password

examples/GsmWebServer/GsmWebServer.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void setup() {
4040
}
4141

4242
// connection state
43-
boolean notConnected = true;
43+
bool notConnected = true;
4444

4545
// Start GSM shield
4646
// If your SIM has PIN, pass it as a parameter of begin() in quotes

examples/MakeVoiceCall/MakeVoiceCall.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void setup() {
4343
Serial.println("Make Voice Call");
4444

4545
// connection state
46-
boolean notConnected = true;
46+
bool notConnected = true;
4747

4848
// Start GSM shield
4949
// If your SIM has PIN, pass it as a parameter of begin() in quotes

examples/ReceiveSMS/ReceiveSMS.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void setup() {
4040
Serial.println("SMS Messages Receiver");
4141

4242
// connection state
43-
boolean notConnected = true;
43+
bool notConnected = true;
4444

4545
// Start GSM connection
4646
while (notConnected) {

examples/ReceiveVoiceCall/ReceiveVoiceCall.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ void setup() {
4444
Serial.println("Receive Voice Call");
4545

4646
// connection state
47-
boolean notConnected = true;
47+
bool notConnected = true;
4848

4949
// Start GSM shield
5050
// If your SIM has PIN, pass it as a parameter of begin() in quotes

examples/SendSMS/SendSMS.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void setup() {
4040
Serial.println("SMS Messages Sender");
4141

4242
// connection state
43-
boolean notConnected = true;
43+
bool notConnected = true;
4444

4545
// Start GSM shield
4646
// If your SIM has PIN, pass it as a parameter of begin() in quotes

examples/Tools/BandManagement/BandManagement.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void loop() {
5555
Serial.print("\nConfiguring band ");
5656
Serial.println(newBandName);
5757
// Change the band
58-
boolean operationSuccess;
58+
bool operationSuccess;
5959
operationSuccess = band.setBand(newBandName);
6060
// Tell the user if the operation was OK
6161
if (operationSuccess) {

examples/Tools/GsmScanNetworks/GsmScanNetworks.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ void setup() {
4949
scannerNetworks.begin();
5050

5151
// connection state
52-
boolean notConnected = true;
52+
bool notConnected = true;
5353

5454
// Start GSM shield
5555
// If your SIM has PIN, pass it as a parameter of begin() in quotes

examples/Tools/PinManagement/PinManagement.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ GSMPIN PINManager;
2626
String user_input = "";
2727

2828
// authenticated with PIN code
29-
boolean auth = false;
29+
bool auth = false;
3030

3131
// serial monitor result messages
3232
String oktext = "OK";

examples/Tools/TestGPRS/TestGPRS.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ char path[] = "/";
4141
String response = "";
4242

4343
// use a proxy
44-
boolean use_proxy = false;
44+
bool use_proxy = false;
4545

4646
void setup() {
4747
// initialize serial communications and wait for port to open:
@@ -138,7 +138,7 @@ void loop() {
138138
}
139139
Serial.print("Receiving response...");
140140

141-
boolean test = true;
141+
bool test = true;
142142
while (test) {
143143
// if there are incoming bytes available
144144
// from the server, read and check them

examples/Tools/TestWebServer/TestWebServer.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ void setup() {
4444

4545
Serial.println("starting,..");
4646
// connection state
47-
boolean connected = true;
47+
bool connected = true;
4848

4949
// Start GSM shield
5050
// If your SIM has PIN, pass it as a parameter of begin() in quotes

0 commit comments

Comments
 (0)
0