Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:

Tássio Auad tassioauad

:octocat:
View GitHub Profile
View acendedorremoto.c
#include <WiFi.h>
#include <PubSubClient.h>
const char* ssid = "Oliveira";
const char* password = "20099002";
const char* mqtt_server = "104.248.117.230";
WiFiClient espClient;
PubSubClient client(espClient);
const int LED = 2;
View alomqtt.c
#include <WiFi.h>
#include <PubSubClient.h>
const char* ssid = "MEUWIFI";
const char* password = "SENHA";
const char* mqtt_server = "IP_MQTT_SERVER";
WiFiClient espClient;
PubSubClient client(espClient);
String payloadString;
View connectwifi.c
#include <WiFi.h>
const char* ssid = "MEUWIFI";
const char* password = "SENHA";
WiFiClient espClient;
void setup() {
Serial.begin(9600);
Serial.print("Conectando ao WiFi... ");
View app.py
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "<h1>Hello, World!</h1>"
View zdnet.css
:root {
--tassio: 10px;
}
body {
margin: 0;
padding: 0;
display: grid;
grid-template-areas: "cabecalho" "destaque" "adsensemenor" "resto";
grid-template-rows: 11.5vh 44.5vh 16vh 1fr;
View Imagem
https://drive.google.com/file/d/1lOJgsNvvWpIhDAogFzn2v4JeP0ntMjGV/view?usp=sharing
View dht11.cpp
// Example testing sketch for various DHT humidity/temperature sensors
// Written by ladyada, public domain
// REQUIRES the following Arduino libraries:
// - DHT Sensor Library: https://github.com/adafruit/DHT-sensor-library
// - Adafruit Unified Sensor Lib: https://github.com/adafruit/Adafruit_Sensor
#include "DHT.h"
#define DHTPIN 2 // Digital pin connected to the DHT sensor
View wifimanager.cpp
#include <WiFi.h>
#include <PubSubClient.h>
#include <Adafruit_Sensor.h>
#include <DHT.h>
#include <DHT_U.h>
#define DHTTYPE DHT11
#define DHTPIN 2
DHT_Unified dht(DHTPIN, DHTTYPE);
View matriz_curricular.html
{% extends 'base.html' %}
{% block body %}
<nav class="navbar navbar-light bg-light">
<span class="navbar-text">
Matriz Curricular
</span>
<select class="custom-select col-md-2" id="periodo-list">
<option selected>Selecione um Período</option>
{% for periodo in periodo_list %}
<option value="{{periodo.get_id()}}">{{periodo.get_nome()}}</option>
View Property.java
public class Property {
private PropertyType type;
public PropertyType getType() {
return type;
}
}