File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change 99import adafruit_minimqtt .adafruit_minimqtt as MQTT
1010from adafruit_aws_iot import MQTT_CLIENT
1111
12- # Add a settings.toml to your filesystem. DO NOT share that
13- # file or commit it into Git or other source control. The file dictionary should have the
14- # following settings:
15- # CIRCUITPY_WIFI_SSID - Your WiFi ssid
16- # CIRCUITPY_WIFI_PASSWORD - Your WiFi password
17- # device_cert_path - Path to the Device Certificate from AWS IoT ("<THING_NAME>.cert.pem")
18- # device_key_path - Path to the RSA Private Key from AWS IoT ("<THING_NAME>.private.key")
19- # broker - The endpoint for the AWS IoT broker ("<PREFIX>.iot.<REGION>.amazonaws.com")
20- # client_id - The client id. Your device's Policy needs to allow this client ("basicPubSub")
21- #
12+ # Add a settings.toml to your filesystem. DO NOT share that file or commit it into
13+ # Git or other source control. The file should have the following settings:
14+ """
15+ CIRCUITPY_WIFI_SSID="Your WiFi ssid"
16+ CIRCUITPY_WIFI_PASSWORD="Your WiFi password"
17+ device_cert_path="<THING_NAME>.cert.pem" # Path to the Device Certificate from AWS IoT
18+ device_key_path="<THING_NAME>.private.key" # Path to the RSA Private Key from AWS IoT
19+ broker="<PREFIX>.iot.<REGION>.amazonaws.com" # The endpoint for the AWS IoT broker
20+ client_id="client_id" # The client id. Your device's Policy needs to allow this client
21+ """
22+
2223# Get WiFi details and AWS keys, ensure these are setup in settings.toml
2324ssid = getenv ("CIRCUITPY_WIFI_SSID" )
2425password = getenv ("CIRCUITPY_WIFI_PASSWORD" )
You can’t perform that action at this time.
0 commit comments