File tree 4 files changed +8
-13
lines changed
4 files changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,6 @@ openssl x509 -in cert.pem -out cert.der -outform DER
96
96
97
97
## Useful links
98
98
99
- * [ ulogging] ( https://github.com/iabdalkader/micropython-ulogging )
100
99
* [ senml-micropython] ( https://github.com/kpn-iot/senml-micropython-library )
101
100
* [ m2crypto] ( https://github.com/m2crypto/m2crypto )
102
101
* [ umqtt.simple] ( https://github.com/micropython/micropython-lib/tree/master/micropython/umqtt.simple )
Original file line number Diff line number Diff line change 5
5
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
6
6
7
7
import time
8
+ import logging
8
9
from kpn_senml import SenmlPack
9
10
from kpn_senml import SenmlRecord
10
11
from arduino_iot_cloud .umqtt import MQTTClient
11
12
12
13
try :
13
- import logging
14
14
import asyncio
15
15
from asyncio import CancelledError
16
16
from asyncio import InvalidStateError
17
17
except ImportError :
18
- import ulogging as logging
19
18
import uasyncio as asyncio
20
19
from uasyncio .core import CancelledError
21
20
Original file line number Diff line number Diff line change 22
22
#
23
23
# Based on: https://github.com/micropython/micropython-lib/tree/master/micropython/umqtt.simple
24
24
25
+ import socket
26
+ import struct
27
+ import select
28
+ import logging
29
+
25
30
try :
26
31
from ussl import wrap_socket
27
- import usocket as socket
28
- import ustruct as struct
29
- import ulogging as logging
30
- import uselect as select
31
32
except ImportError :
32
- import socket
33
- import struct
34
- import logging
35
- import select
36
33
from arduino_iot_cloud .ussl import wrap_socket
37
34
38
35
Original file line number Diff line number Diff line change 4
4
import time
5
5
import ussl
6
6
import network
7
- import ulogging as logging
8
- from ulogging . ustrftime import strftime
7
+ import logging
8
+ from time import strftime
9
9
from arduino_iot_cloud import AIOTClient
10
10
from arduino_iot_cloud import Location
11
11
from arduino_iot_cloud import Schedule
You can’t perform that action at this time.
0 commit comments