Skip to main content

Physical layer for using a Moxa devices with IEC870REE library

Project description

Physical layer for using a Moxa devices for IEC870REE library


from iec870ree_moxa import Moxa
from iec870ree.ip import Ip
from iec870ree.protocol import LinkLayer, AppLayer
import iec870ree.protocol
import datetime

ip_layer = iec870ree.ip.Ip(('', 40001))
physical_layer = Moxa('PHONENUMBER', ip_layer)
link_layer = iec870ree.protocol.LinkLayer(10345, 1)
app_layer = iec870ree.protocol.AppLayer()
link_layer.remote_link_reposition()"before authentication")
resp = app_layer.authenticate(1)"CLIENTE authenticate response {}".format(resp))"before read")

start_date = datetime.datetime(2018, 4, 1, 0, 0)
end_date = datetime.datetime(2018, 4, 2, 1, 0)

for resp in app_layer.read_integrated_totals(start_date, end_date):"read response {}".format(resp))

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for iec870ree_moxa, version 0.2.2
Filename, size & hash File type Python version Upload date
iec870ree_moxa-0.2.2.tar.gz (3.0 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page