OpenMTC/doc/training/onem2m-examples/onem2m-example-3.py

9 lines
169 B
Python
Raw Normal View History

2017-11-07 13:41:38 +00:00
# Example 3: Retrieve OneM2MRequest
from openmtc_onem2m.transport import OneM2MRequest
request = OneM2MRequest("retrieve", to="onem2m")
2019-01-10 10:10:02 +00:00
print(request.to)
2017-11-07 13:41:38 +00:00
#>>> onem2m