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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for onem2m-0.3.1.tar.gz
Algorithm Hash digest
SHA256 449b69c9063c0d04e7b86ce5a9b730b6662c9431cb6f4a84cf755d245e7c5c16
MD5 d4d154f02529ec35bd0390e9f634d806
BLAKE2b-256 2843665be1757a9f276e264dad3be4d0053cdf376dab8ac51c152c943c0019df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for onem2m-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 086373f4b30db28907836100a5588e2cda9ae5da6cd4fb373181e830ba264b04
MD5 6cd701572ec43f71f24c737911754a46
BLAKE2b-256 def61159817a06ac58d7112f5379973e79128f844f2e4f703818a72dfaea1a96

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