Skip to main content

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

onem2m-0.3.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

onem2m-0.3-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file onem2m-0.3.tar.gz.

File metadata

  • Download URL: onem2m-0.3.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for onem2m-0.3.tar.gz
Algorithm Hash digest
SHA256 6c784590da3a924fc7c0c0ebea362cbdcf67c58137da659a25ce5ee433bd602a
MD5 12d9b182f7ea0f957f063acbab08a9e8
BLAKE2b-256 09b76a841de2468d897bca0e97bd612c3f1e81c0292cc8599b5636b0c8110e85

See more details on using hashes here.

File details

Details for the file onem2m-0.3-py3-none-any.whl.

File metadata

  • Download URL: onem2m-0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for onem2m-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7619d8a27876e060c96be210defe2eec195464cab73063de88eb7bdca8a03f99
MD5 b18f5224baadb92e62a9c946c3c44a9d
BLAKE2b-256 aff54b273b75e1f59d16609fe8ecfa591645b2c07188011841a7fd65c1a9e58f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page