oneM2M ADN Client Lib
Project description
oneM2M Application Entity Node Client Library Python 3.6 tested
oneM2M.conf [DEFAULT] oneM2M_scl_base_url=http://13.125.35.229:8080/~/paas-in-13-125-35-229/base oneM2M_scl_base_origin=paas-in-13-125-35-229 oneM2M_poa_url=
from onem2m import AE, Constant
cli = AE.ClientLib()
- arg = {Constant.CONST.ADN.ID:’S111115’, Constant.CONST.ADN.NAME:’S111115’, Constant.CONST.CHECK.URI:”S111115”,
Constant.CONST.SENSOR.ID:’111111’, Constant.CONST.SENSOR.NAME:’Temp’, Constant.CONST.SENSOR.HISTORY:11}
- arg1 = {Constant.CONST.ADN.ID:’S111115’, Constant.CONST.SENSOR.ID:’111111’,Constant.CONST.SENSOR.NAME:’Temp’,
Constant.CONST.SENSING.NAME:’R1’,Constant.CONST.SENSING.VALUE:32}
arg2 = {Constant.CONST.ADN.ID:’S111115’,Constant.CONST.ID:’111111’}
print(cli.checkDuplicated(arg))
print(cli.createADN(arg))
print(cli.registrySensor(arg))
print(cli.sendSensingReport(arg1))
print(cli.getLastValue(arg2))
print(cli.getValues(arg2))
print(cli.getADNAll())
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file onem2m-0.3.2.tar.gz.
File metadata
- Download URL: onem2m-0.3.2.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e743515b9756380ecb6f9b90b11098cfcc6db0c588cd49ae6db626ae4f53ee61
|
|
| MD5 |
1df01db8c500b8a4602bba292524df8a
|
|
| BLAKE2b-256 |
f09540f23971e66abf54c73e0af1cd490c26422f73b13fbc76fd93b57578111f
|
File details
Details for the file onem2m-0.3.2-py3-none-any.whl.
File metadata
- Download URL: onem2m-0.3.2-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb726ccacae9954117cfdd959115b79e415a5fce350a1110a24ea3edc64e4a5c
|
|
| MD5 |
9c3e211e0a9bc5f55cd8bc9c0f30d500
|
|
| BLAKE2b-256 |
110e2c2f2e4f4b2aedcbd4e5419bd0a614c0790e06e15132e3b71573d66568f8
|