Skip to content

Commit 8d53b31

Browse files
author
brentru
committed
bump baud to 9600 for FONA, disable encryption for fona
1 parent 2b194a9 commit 8d53b31

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

examples/minimqtt_adafruitio_cellular.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@
1717

1818
### Cellular ###
1919

20-
# Create a serial connection for the FONA connection using 4800 baud.
21-
# These are the defaults you should use for the FONA Shield.
22-
# For other boards set RX = GPS module TX, and TX = GPS module RX pins.
23-
uart = busio.UART(board.TX, board.RX, baudrate=4800)
20+
# Create a serial connection for the FONA connection
21+
uart = busio.UART(board.TX, board.RX)
2422
rst = digitalio.DigitalInOut(board.D4)
2523
# Initialize FONA
2624
fona = FONA(uart, rst)
@@ -79,6 +77,7 @@ def message(client, topic, message):
7977
broker="io.adafruit.com",
8078
username=secrets["aio_username"],
8179
password=secrets["aio_key"],
80+
is_ssl=False,
8281
)
8382

8483
# Setup the callback methods above

examples/minimqtt_simpletest_cellular.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@
1717
print("Cellular secrets are kept in secrets.py, please add them there!")
1818
raise
1919

20-
# Create a serial connection for the FONA connection using 4800 baud.
21-
# These are the defaults you should use for the FONA Shield.
22-
# For other boards set RX = GPS module TX, and TX = GPS module RX pins.
23-
uart = busio.UART(board.TX, board.RX, baudrate=4800)
20+
# Create a serial connection for the FONA connection
21+
uart = busio.UART(board.TX, board.RX)
2422
rst = digitalio.DigitalInOut(board.D4)
2523
# Initialize FONA
2624
fona = FONA(uart, rst)
@@ -86,7 +84,10 @@ def publish(client, userdata, topic, pid):
8684

8785
# Set up a MiniMQTT Client
8886
client = MQTT.MQTT(
89-
broker=secrets["broker"], username=secrets["user"], password=secrets["pass"]
87+
broker=secrets["broker"],
88+
username=secrets["user"],
89+
password=secrets["pass"],
90+
is_ssl=False,
9091
)
9192

9293
# Connect callback handlers to client

0 commit comments

Comments
 (0)