You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -511,7 +511,7 @@ For example, if you have `Serial.begin(115200)` in your `setup()` function, you'
511
511
512
512
```cpp
513
513
void setup() {
514
-
Serial.begin(115200);
514
+
Serial.begin(115200); // Initialize Serial to 115200 baud rate
515
515
device.debugPort(Serial); // Now the library knows where to output debug information
516
516
device.init();
517
517
}
@@ -548,7 +548,7 @@ Example:
548
548
549
549
```cpp
550
550
voidsetup() {
551
-
Serial.begin(115200);
551
+
Serial.begin(115200); // Initialize Serial to 115200 baud rate
552
552
device.debugPort(Serial, true); // Verbose Debug Output is now enabled
553
553
device.init();
554
554
}
@@ -557,7 +557,7 @@ void setup() {
557
557
558
558
# Troubleshooting and Notes
559
559
560
-
- This SDK has been tested and confirmed to work with the following software, so if you're having issues with your device/code, **make sure** you're working with at least these versions:
560
+
- This SDK has been tested and confirmed to work with the following software, so if you're having issues with your device/code, **make sure you're working with at least these versions**:
561
561
562
562
| Name | Version | Used for | Type | Description |
563
563
|--|--|--|--|--|
@@ -571,6 +571,8 @@ void setup() {
571
571
|[PubSubClient](https://pubsubclient.knolleary.net/) (INCLUDED) | 2.7.0 | All | Arduino Library | Used by this SDK to connect to AllThingsTalk. Already included in this SDK. |
572
572
- Make sure to [enable verbose debug output](#enable-verbose-debug-output) as it could tell you a lot and thus help you resolve your problem.
573
573
- If you try to send data to a non-existent asset on AllThingsTalk, you might get disconnected. This is by design. You can make sure the asset exists by using the [create assets](#creating-assets) feature of this SDK.
574
+
- If you get connected to WiFi easily but AllThingsTalk is connecting and disconnecting erratically, check your AllThingsTalk [credentials](#defining-credentials) (they could be wrong, token could be revoked, device may be deleted, etc)
575
+
- If you are constantly getting disconnected (WiFi taking too long to connect, AllThingsTalk connection being dropped constantly), try to change your WiFi access point - it could be that it's congested.
574
576
- Connection to AllThingsTalk may break if you use the `delay()` function too often or for prolonged periods of time due to the nature of that function. The SDK will recover the connection automatically, but if this happens too often, try to use `millis()` to create delays when possible.
575
577
- Due to how ESP8266 works, the WiFi Connection may break when using `AnalogRead()` sometimes. This is out of our control. It will most likely fail when reading an analog pin too often. In this case, it is okay to use `delay()` for about 50 or more milliseconds (see what works for you) in order to avoid this issue.
576
578
- Receiving **JSON Objects** or **JSON Arrays** is not currently supported. Support is planned in a future release.
0 commit comments