conpot.protocols.bacnet package

Submodules

conpot.protocols.bacnet.bacnet_app module

class conpot.protocols.bacnet.bacnet_app.BACnetApp(device, datagram_server)

Bases: bacpypes.app.BIPSimpleApplication

BACnet device emulation class. BACnet properties are populated from the template file. Services are defined. Conpot implements a smart sensor and hence - DM-RP-B (execute ReadProperty) - DM-DDB-B (execute Who-Is, initiate I-Am) - DM-DOB-B (execute Who-Has, initiate I-Have) services are supported.

add_object(obj)

Add an object to the local collection.

add_property(prop_name, prop_value)
get_objects_and_properties(dom)

parse the bacnet template for objects and their properties

iAm(*args)
iHave(*args)
indication(apdu, address, device)

logging the received PDU type and Service request

readProperty(request, address, invoke_key, device)
response(response_apdu, address)
whoHas(request, address, invoke_key, device)
whoIs(request, address, invoke_key, device)

conpot.protocols.bacnet.bacnet_server module

Module contents