This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
////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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//MySQL veri tabanı ayarları | |
$servername = "localhost"; | |
$username = "root"; | |
$password = ""; | |
$dbname = "arduphp"; | |
if(isset($_GET['deger'])) | |
{ | |
$gelen = $_GET['deger']; | |
if(!empty($gelen)){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*************************************************** | |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |