Skip to content

Commit

Permalink
Allow using this library on system without usocket module (#12)
Browse files Browse the repository at this point in the history
* Allow using this library on system without usocket module

* Update microcoapy.py after review for PR
  • Loading branch information
przemobe authored Feb 26, 2024
1 parent 703f4c7 commit 8913869
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion microcoapy/microcoapy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import usocket as socket
try:
import usocket as socket
except ImportError:
pass
import uos
import utime as time
from . import coap_macros as macros
Expand Down

0 comments on commit 8913869

Please sign in to comment.