Skip to content

Instantly share code, notes, and snippets.

kataibenjawan

Block or report user

Report or block kataibenjawan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View activity_main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
View AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.fumito.itemp2" >
<uses-permission android:name="android.permission.INTERNET" />
<user-sdk
android:minSdkVersion="12"
android:targetSdkVersion="18" />
<application
View MainActivity.java
package com.example.fumito.itemp2;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.webkit.WebView;
import android.webkit.WebViewClient;
View iTEMP.ino
// Libraries
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include "DHT.h"
int state ;
// Credentials
String deviceId = "55a63b5b25f2bc11200055db"; // * set your device id (will be the MQTT client username)
String deviceSecret = "SdO/u3JoNNO/PeUqsAkWR5tdgfwzq/LK"; // * set your device secret (will be the MQTT client password)
String clientId = "iTemp2"; // * set a random string (max 23 chars, will be the MQTT client id)
You can’t perform that action at this time.