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
<html xmlns="http://www.w3.org/1999/xhtml" > | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<meta http-equiv="pragma" content="no-cache" /> | |
<script src="common.js?v=1.4.0.8" type="text/javascript" charset="utf-8" ></script> | |
<title id="windowstitlelab"></title> | |
<style type="text/css"> | |
body{ padding:0px; margin:0px;} |
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
Class Main{ | |
public static void main(String[] args){ | |
System.out.println("Hello Java"); | |
} | |
} |
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 <ESP8266_TCP.h> | |
#include <SoftwareSerial.h> | |
// ESP8266 Class | |
ESP8266_TCP wifi; | |
SoftwareSerial mySerial(10,11); | |
int getTemp = A0; | |
// Target Access Point | |
#define ssid "OpenWrt_NAT3" | |
#define pass "welcometoopendream" |
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
package com.example.finalproject; | |
import java.net.Socket; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.view.View; | |
import android.view.View.OnClickListener; | |
import android.widget.Button; |
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
/* | |
* | |
* Client side for Simple Connection (Always Connected) | |
* | |
*/ | |
#include <ESP8266_TCP.h> | |
#include <SoftwareSerial.h> | |
// ESP8266 Class | |
ESP8266_TCP wifi; |
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
/* | |
* | |
* Client side for Simple Connection (Always Connected) | |
* | |
*/ | |
#include <ESP8266_TCP.h> | |
#include <SoftwareSerial.h> | |
// ESP8266 Class | |
ESP8266_TCP wifi; |
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 <SoftwareSerial.h> | |
#include <TinyGPS.h> | |
long lat,lon; // create variable for latitude and longitude object | |
TinyGPS gps; // create gps object | |
void setup(){ | |
Serial1.begin(9600); // connect serial |
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
int speakerPin = 12; | |
int length = 23; | |
// d r m f s ra t do | |
// c d e f g a b C | |
char notes[] = "agg egaabg agggagg gaa"; | |
int beats[]={1,1,2,1,1,1,1,1,2,1,1,1,1,1,1,1,1,2,1,1,1,2}; | |
int tempo =300; | |
/********************************************************************************************/ | |
void setup() |
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> | |
const char* ssid = "yourSSID"; //ใส่ SSID WiFi ที่ต้องการเชื่อมต่อ | |
const char* password = "yourPASSWORD"; //ใส่ password ของ WiFi ที่ต้องการเชื่อมต่อ | |
const char* host = "api.thingspeak.com"; // ชื่อ host ที่ต้องการติดต่อ | |
const char* url = "/channels/38965/fields/1/last"; // path ที่ต้องการเรียก | |
int lengthData = 0; //ตัวแปรนี้จะเก็บขนาดของข้อมูลที่ทาง Server มีการ response กลับมา | |
int data = 0; // ตัวแปรนี้จะเก็บค่าข้อมูลที่เราต้องการใช้งาน |
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> | |
const char* ssid = "yourSsid"; | |
const char* password = "yourPassword"; | |
String readStrings = ""; // สร้างตัวแปรมาเก็บข้อมูลค่าที่ส่งเข้ามา | |
int pin1 = 14; //กำหนด GPIO 14 (D5) | |
int pin2 = 12; //กำหนด GPIO 12 (D6) | |
int pin3 = 13; //กำหนด GPIO 13 (D7) |
OlderNewer