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.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.3-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for onem2m-0.3.3.tar.gz
Algorithm Hash digest
SHA256 d9aa74fcfa17e27f789841277d93311c6dd809a0996fc7fc31f88946277acfd2
MD5 b4890a67a12fe21dc8e9b8825542607d
BLAKE2b-256 24e210ef4288302dbeb441e1eb8381fd565610601967e6cdec24f687b1e054c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for onem2m-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c0cdb27135edf2e5d1b8d28225ef7dcf7c3eeebcb8b7294a5aaf75a51e239a58
MD5 dedfeab418693c722566ad84bf88b0d5
BLAKE2b-256 31c9780badc048fa081b88e62d3f129a8848e6b8214fcb1673cb43d595c6d8d1

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