mirror of
https://github.com/OpenMTC/OpenMTC.git
synced 2025-02-07 03:09:11 +00:00
6cbb2e6144
* changes starting with python3 explicit * removes python modules which are not available for python3 * exchanges fyzz query parsing with rdflib functionality * fixes interop tests * replaces reduce with for loop in nodb driver * simple python2 -> python3 conversions * adds changes for handling different string handling in python3 * test stretch building with travis * installing python-setuptools in docker * installing python-setuptools in docker * changing python2 to python3 in docker makefiles * changing python2 to python3 and some other test changes * push docker only in master branche * running version of openmtc * fix some port problems * porting path library completly now * restoring travis.yml * testing new travis.yml * add sudo * updating travis OS from trusty to xenial * upgrade pip before * show running docker logs * show more logs * for debugging * showlogs of docker after failure * testing new travis.yml * finish travis.yml
14 lines
278 B
Python
14 lines
278 B
Python
# Example 6a: Notify OneM2MRequest
|
|
|
|
from openmtc_onem2m.transport import OneM2MRequest
|
|
from openmtc_onem2m.model import AE
|
|
|
|
my_app = AE(App_ID="myApp")
|
|
|
|
request = OneM2MRequest("notify", to="onem2m", pc=my_app)
|
|
|
|
print(request.to)
|
|
#>>> onem2m
|
|
print(request.pc.App_ID)
|
|
#>>> myApp
|