envea CAIRSENS PM Série Notice Technique page 74

Table des Matières

Publicité

Les langues disponibles

Les langues disponibles

do
{
}
while
}
// don't forget to change the define
#define
SERIAL_PORT_NUMBER 5
int main(int
{
char
void
int
sprintf(Tc_Com,
port = rs_open ( Tc_Com);
if
( port == 0 )
{
}
while( 1 )
{
};
}
rs_close( port );
return
}
10.4
Decode data example
#include
<stdio.h>
#include
<time.h>
#include
<stdbool.h>
#include
<windows.h>
#include
"stdint.h"
#include
<windows.h>
int32_t
ToInt32(unsigned char
{
© 2016 Cairpol
printf("\n------ %d \n"
DecodeBloc(&data[i]);
i += 22;
((i+22) < nb);
argc, char* argv[])
Tc_Com[100];
* port = 0;
j = 0;
"\\\\.\\COM%d"
printf(
"Serial Port COM%d not avaible\n"
return
0;
rs_flush(port);
unsigned char
REF1[]= { 'D', 'D', 'D', 0x01, 0x00, 0x00, 0x00, 0x01
read_stored_data(port,REF1);
Sleep(1000);
0;
, pos++);
, SERIAL_PORT_NUMBER );
* data,
int
pos)
CairSPM sensor
, SERIAL_PORT_NUMBER );
37

Publicité

Chapitres

Table des Matières
loading

Ce manuel est également adapté pour:

Cairsens pm1Cairsens pm2.5Cairsens pm10

Table des Matières