如何使用BACnet IP协议配置和获取时间值
发布时间
阅读量:
阅读量
以下提供了一个基于BACnet IP协议的设备对象配置示例,该示例展示了如何在ARM Linux系统中实现RTC时间的读取与设置操作:
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include "bacnet.h"
#include "bacenum.h"
#include "bacapp.h"
#include "iam.h"
#include "device.h"
#define BACNET_PORT 47808
#define MAX_APDU 1476
#define BACNET_MAX_OBJECTS 1024
// BACnet设备号
uint32_t Object_Instance_Number = 12345;
// RTC设
全部评论 (0)
还没有任何评论哟~
