This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"process-identifier": 1, | |
"initiating-device-identifier": "device,999", | |
"event-object-identifier": "analog-value,1", | |
"time-stamp": { | |
"time": "01:02:03" | |
}, | |
"notification-class": 1, | |
"priority": 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
from bacpypes3.debugging import ModuleLogger | |
from bacpypes3.argparse import SimpleArgumentParser | |
from bacpypes3.app import Application | |
from bacpypes3.local.analog import AnalogValueObject | |
from bacpypes3.local.binary import BinaryValueObject | |
_debug = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import os | |
import os.path | |
import streamlit as st | |
from streamlit.logger import get_logger | |
# humph | |
# utils_path = os.path.realpath(os.path.pardir) | |
# if utils_path not in sys.path: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from bacpypes.debugging import btox | |
from bacpypes.pdu import Address, PDU | |
from bacpypes.pdu import PDU | |
from bacpypes.apdu import APDU, ReadPropertyRequest | |
from bacpypes.npdu import NPDU | |
from bacpypes.analysis import decode_packet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
This application presents a 'console' prompt to the user asking for Who-Is | |
commands which create the related APDUs and sends them through a "fuzz" layer | |
for additional processing. | |
""" | |
from bacpypes.debugging import bacpypes_debugging, ModuleLogger | |
from bacpypes.consolelogging import ConfigArgumentParser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
This is a clone of the ReadProperty.py sample application that does not | |
support the Who-Is and Read-Property services (which are provided by default) | |
making this essentially a client-only device. | |
Note that it is not completely stealthy, it will respond with a Reject if | |
it is sent a Read-Property request. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"avar": 74.1, | |
"bvar": "inactive" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
This sample application shows how to create a GroupObject. | |
""" | |
import os | |
import random | |
from bacpypes.debugging import bacpypes_debugging, ModuleLogger |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
This sample application shows how to extend one of the basic objects, an Analog | |
Value Object in this case, to provide a present value that is writable but | |
occasionally returns an error. | |
""" | |
import os | |
import random |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Writable Analog Value Object | |
""" | |
from bacpypes.errors import ExecutionError | |
from bacpypes.primitivedata import Real, CharacterString | |
from bacpypes.basetypes import EngineeringUnits | |
from bacpypes.object import register_object_type, WritableProperty, AnalogValueObject | |
# from bacpypes.consolelogging import ConsoleLogHandler |
NewerOlder