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:
skarg
2006-01-23 13:04:29 +00:00
parent c30464177e
commit 427eb31e8d
30 changed files with 1420 additions and 68 deletions
+2
View File
@@ -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)
{
+2
View File
@@ -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);
+1 -1
View File
@@ -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);