Skip to content

Instantly share code, notes, and snippets.

View yakutozcan's full-sized avatar
🎯
Focusing

Yakut Özcan yakutozcan

🎯
Focusing
View GitHub Profile
@yakutozcan
yakutozcan / NodeMCU_Firebase_Led.ino
Created November 7, 2017 19:55
Firebase,IoT,Google,Arduino,NodeMCU
////yakutozcan.blogspot.com
// Copyright 2015 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
/*
This a simple example of the aREST UI Library for the ESP8266.
See the README file for more details.
Written in 2014-2016 by Marco Schwartz under a GPL license.
*/
// Import required libraries
#include <ESP8266WiFi.h>
#include <aREST.h>
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>
#include <ESP8266HTTPClient.h>
#define USE_SERIAL Serial
ESP8266WiFiMulti WiFiMulti;
int randTemp;
String url;
void setup() {
USE_SERIAL.begin(115200);
CREATE TABLE `TBL_Veriler` (
`id` int(11) NOT NULL,
`veriler` varchar(255) NOT NULL,
`tarih` datetime NOT NULL
);
ALTER TABLE `TBL_Veriler`
ADD PRIMARY KEY (`id`);
ALTER TABLE `TBL_Veriler`
<?php
//MySQL veri tabanı ayarları
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "arduphp";
if(isset($_GET['deger']))
{
$gelen = $_GET['deger'];
if(!empty($gelen)){
<?php
//MySQL veri tabanı ayarları
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "arduphp";
//http://yakut-macbook-air.local/arduoku.php?oku
if(isset($_GET['oku']))
{
try {
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>
#include <ESP8266HTTPClient.h>
#define USE_SERIAL Serial
ESP8266WiFiMulti WiFiMulti;
void setup() {
USE_SERIAL.begin(115200);
// USE_SERIAL.setDebugOutput(true);
@yakutozcan
yakutozcan / socketioTCP.ino
Created September 17, 2017 13:37
socketio, TCP, Web uygulamalari
#include <ESP8266WiFi.h>
#define SERVER_PORT 1907 //TCP Port
const char* ssid = "özcan";//kablosuz ağ adı
const char* password = "wifiSifre";//kablosuz ağ şifresi
WiFiServer server(SERVER_PORT);
void setup()
{
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, LOW);
delay(500);
/***************************************************
Adafruit MQTT Library ESP8266 Example
Must use ESP8266 Arduino from:
https://github.com/esp8266/Arduino
Works great with Adafruit's Huzzah ESP board & Feather
----> https://www.adafruit.com/product/2471
----> https://www.adafruit.com/products/2821
#!/usr/bin/env python
# -*- coding: utf8 -*-
#Gerekli kütüphaneleri ekliyoruz
from gpiozero import MotionSensor
import telepot
import picamera
import time
from datetime import timedelta