Skip to main content

Hydronet WMM API

Project description

Hydronet API

Summary: This API is for use with a Hydronet WMM API implementing the most recent version of the HydroMesh library.

To import the hydronet library:

from hydronet import wmm

To establish connection to a modem with an Ethernet interface IP of (xx.xx.xx.xx):

modem = wmm.wmm(<ipaddr>,<BufferSize>,<Port>)

In order to send data from an underwater node to a internet endpoint, the network must be made aware of the endpoint either by an edge node or an underwater node. To introduce a new internet UDP endpoint (at :) to the mesh network from an underwater application (where is an alias for the internet endpoint understood by HydroMesh):

<dest> = modem.establish_connection(<ipaddr>, port>)

The destination field is a one byte value representing an endpoint. The range of valid destinations are as follows:

  • 0x00 : Reserved
  • 0x01-0x3F : UW endpoints
  • 0x40-0xFE : Alias destinations
  • 0xFF : Reserved

Send data to a destination:

modem.send(<data>,<destination>)

Receive data from the LAN modem:

<data>,<addr>,<src> = modem.recv(self, <cut_header>=True)

The (source) field is of the same type as the destination, and can therefore be used as a destination for further communication.

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

hydronetapi-0.0.6.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

hydronetapi-0.0.6-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file hydronetapi-0.0.6.tar.gz.

File metadata

  • Download URL: hydronetapi-0.0.6.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for hydronetapi-0.0.6.tar.gz
Algorithm Hash digest
SHA256 7a23ec84ed7acf68f5108bf01b8bd4906c67bbfd06365cbb52b8b9d80e9e02f9
MD5 abc22c73dafdc74afe26945abdf6d76d
BLAKE2b-256 eb1722628e3c4bd5e2affc8dffa3e796a23874e0433639a38610f929223d9d1f

See more details on using hashes here.

File details

Details for the file hydronetapi-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: hydronetapi-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for hydronetapi-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9d831020e0e4701168a585b42424418b2ebe1888c4c909a6e178a7de33da6b69
MD5 2fd118aa76907a3e8fac8f4dcedfde11
BLAKE2b-256 2dfbd31f58f070a71679afce1b5f1a7c207a66bd846f0f6a5049fa63611b8a6b

See more details on using hashes here.

Supported by

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