#ifndef DATACOLLECTORSHM_H
#define DATACOLLECTORSHM_H

#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/shm.h>
#include <sys/ipc.h>

#define SHM_PATH "/"
#define SHM_PORT 5915
#define SHM_DEVPORT 5916
#define DEV_MAXCOUNT  10240

typedef struct {
    uint time;
    uint influtime;
} DataCollectorShm;


typedef struct {
    char Company_Code[48];
    int Device_Type;
    char product_code[48];
}SmokerDeviceSensor;

typedef struct {
    SmokerDeviceSensor sensors[DEV_MAXCOUNT];
}SmokerDeviceSensorList;



#endif // DATACOLLECTORSHM_H
