Skip to content

Instantly share code, notes, and snippets.

View fdavidgithub's full-sized avatar

Francis David fdavidgithub

View GitHub Profile
@fdavidgithub
fdavidgithub / TTL Data
Created July 14, 2022 01:17
ABNT Gerador TTL
create_at VARCHAR(20) NOT NULL,
received_data VARCHAR(20) NOT NULL,
serviceID VARCHAR(20) NOT NULL,
geracao_medicao_convertida_c1 FLOAT NOT NULL DEFAULT 0,
geracao_medicao_convertida_c2 FLOAT NOT NULL DEFAULT 0,
geracao_medicao_convertida_c3 FLOAT NOT NULL DEFAULT 0,
geracao_medicao_raw_c1 INTEGER NOT NULL DEFAULT 0,
geracao_medicao_raw_c2 INTEGER NOT NULL DEFAULT 0,
geracao_medicao_raw_c3 INTEGER NOT NULL DEFAULT 0,
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <termios.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/signal.h>
#include <fcntl.h>
#include <stdint.h>