Since I am new to BACnet, I need an example showing how to create a BACnet device and read and write data.