File tree 1 file changed +11
-10
lines changed
1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change 9
9
import adafruit_minimqtt .adafruit_minimqtt as MQTT
10
10
from adafruit_aws_iot import MQTT_CLIENT
11
11
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
+
22
23
# Get WiFi details and AWS keys, ensure these are setup in settings.toml
23
24
ssid = getenv ("CIRCUITPY_WIFI_SSID" )
24
25
password = getenv ("CIRCUITPY_WIFI_PASSWORD" )
You can’t perform that action at this time.
0 commit comments