Added demo for BACnet simple server in the demo/server directory.
Added demo for BACnet ReadProperty service. Added demo for BACnet WriteProperty service.
This commit is contained in:
@@ -239,6 +239,7 @@ uint32_t bacfile_instance(char *filename)
|
||||
return instance;
|
||||
}
|
||||
|
||||
#if TSM_ENABLED
|
||||
// this is one way to match up the invoke ID with
|
||||
// the file ID from the AtomicReadFile request.
|
||||
// Another way would be to store the
|
||||
@@ -300,6 +301,7 @@ uint32_t bacfile_instance_from_tsm(
|
||||
|
||||
return object_instance;
|
||||
}
|
||||
#endif
|
||||
|
||||
bool bacfile_read_data(BACNET_ATOMIC_READ_FILE_DATA *data)
|
||||
{
|
||||
|
||||
@@ -50,6 +50,7 @@ bool bacfile_valid_instance(uint32_t object_instance);
|
||||
uint32_t bacfile_count(void);
|
||||
uint32_t bacfile_index_to_instance(unsigned find_index);
|
||||
uint32_t bacfile_instance(char *filename);
|
||||
#if TSM_ENABLED
|
||||
// this is one way to match up the invoke ID with
|
||||
// the file ID from the AtomicReadFile request.
|
||||
// Another way would be to store the
|
||||
@@ -57,6 +58,7 @@ uint32_t bacfile_instance(char *filename);
|
||||
// when the request was sent
|
||||
uint32_t bacfile_instance_from_tsm(
|
||||
uint8_t invokeID);
|
||||
#endif
|
||||
|
||||
// AtomicReadFile ACK helper
|
||||
bool bacfile_read_data(BACNET_ATOMIC_READ_FILE_DATA *data);
|
||||
|
||||
@@ -478,7 +478,7 @@ int Device_Encode_Property_APDU(
|
||||
break;
|
||||
case PROP_PROTOCOL_OBJECT_TYPES_SUPPORTED:
|
||||
bitstring_init(&bit_string);
|
||||
for (i = 0; i < MAX_BACNET_OBJECT_TYPES; i++)
|
||||
for (i = 0; i < MAX_ASHRAE_OBJECT_TYPE; i++)
|
||||
{
|
||||
// initialize all the object types to not-supported
|
||||
bitstring_set_bit(&bit_string, (uint8_t)i, false);
|
||||
|
||||
Reference in New Issue
Block a user