You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
520 B
C++

12 months ago
// modbus_master_test.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//
#include <iostream>
#include "stdio.h"
#include "stdlib.h"
#include "time.h"
#include "winsock.h"
#include "ini.h"
#include "common.h"
#include "ysp_modbus_master.h"
using namespace std;
#define CONFIG_FILE_NAME "yspConfig.ini"
int main(int argc, char** argv)
{
printf("modbus tools: as modbus master\n");
xGet_config_from_file();
xModbus_master_task_init();//MODBUS thread
while (1) { Sleep(1000); }
12 months ago
}