IOT is very hot topic when talking of current technology although it started long ago in 1999 by Kevin Ashton for the company P&G. Kevin cool name na? It reminds me of me ! he-he. Now back to IOT, so basic idea of IOT is to connect dumb things that are around us to a network to make things smart. We can’t make people around us smart but we can makes things smarter irony! You can say you are implementing IOT when you have some sort of (small) processor in your device that has interaction with environment human or animal. Device can be multiple there is no limit to numbers here. When these devices are connected to internet of network of any sort that you are doing something with IOT.
Code Below Follows the video to help set IOT :
Let’s See the code for Getting Data from Sensor to Arduino and update it to firebase as Real-time Database:
#include <ESP8266WiFi.h> #include <FirebaseArduino.h> |
|
// Set these to run example. | |
#define FIREBASE_HOST “esri-eea51.firebaseio.com“ | |
#define FIREBASE_AUTH “qULRQbnuzJ3qkAdYunMasgcLlKtpXic1UQ1FxHvM“ | |
#define WIFI_SSID “kavin“ | |
#define WIFI_PASSWORD “1123581321“ | |
const int trigPin = 15; //D4 | |
const int echoPin = 12; //D3 | |
long duration;int distance; | |
void setup() { | |
Serial.begin(9600); | |
pinMode(trigPin, OUTPUT); // Sets the trigPin as an Output | |
pinMode(echoPin, INPUT); // Sets the echoPin as an Input | |
pinMode(16, OUTPUT); //D0 | |
pinMode(0, INPUT); //D3 | |
// connect to wifi. | |
WiFi.begin(WIFI_SSID, WIFI_PASSWORD); | |
Serial.print(“connecting“); | |
while (WiFi.status() != WL_CONNECTED) { | |
Serial.print(“.“); | |
delay(500); | |
} | |
Serial.println(); | |
Serial.print(“connected: “); | |
Serial.println(WiFi.localIP()); | |
Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH); | |
Firebase.set(“LED_STATUS“, 0); | |
Firebase.setInt(“distance“, 0); | |
} | |
int n = 0; | |
void loop() { | |
/* | |
* For Utlrasonic sensor distance measurement | |
*/ | |
// Clears the trigPin | |
digitalWrite(trigPin, LOW); | |
delayMicroseconds(2); | |
// Sets the trigPin on HIGH state for 10 micro seconds | |
digitalWrite(trigPin, HIGH); | |
delayMicroseconds(10); | |
digitalWrite(trigPin, LOW); | |
// Reads the echoPin, returns the sound wave travel time in microseconds | |
duration = pulseIn(echoPin, HIGH); | |
// Calculating the distance | |
distance= duration*0.034/2; | |
// Prints the distance on the Serial Monitor | |
Serial.print(“Distance: “); | |
Serial.println(distance); | |
Firebase.setInt(“distance“,distance); | |
delay(2000); | |
/* | |
* Led Control Home Automation | |
*/ | |
n = Firebase.getInt(“LED_STATUS“); | |
// handle error | |
if (n==1) { | |
Serial.println(“LED ON“); | |
digitalWrite(16,HIGH); | |
return; | |
//delay(10); | |
} | |
else { | |
Serial.println(“LED OFF“); | |
digitalWrite(16,LOW); | |
} | |
} |
Android App Code:
import android.os.Bundle; package com.example.root.fire_major_notification; |
|
import android.support.v7.app.AppCompatActivity; | |
import android.view.View; | |
import android.widget.Button; | |
import android.widget.TextView; | |
import com.google.firebase.database.DataSnapshot; | |
import com.google.firebase.database.DatabaseError; | |
import com.google.firebase.database.DatabaseReference; | |
import com.google.firebase.database.FirebaseDatabase; | |
import com.google.firebase.database.ValueEventListener; | |
public class MainActivity extends AppCompatActivity { | |
Button on; | |
Button off; | |
TextView distance; | |
DatabaseReference dref; | |
String status; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
on = (Button) findViewById(R.id.on); | |
off = (Button) findViewById(R.id.off); | |
distance = (TextView) findViewById(R.id.textView3); | |
dref= FirebaseDatabase.getInstance().getReference(); | |
dref.addValueEventListener(new ValueEventListener() { | |
@Override | |
public void onDataChange(DataSnapshot dataSnapshot) { | |
status=dataSnapshot.child(“distance“).getValue().toString(); | |
distance.setText(status); | |
} | |
@Override | |
public void onCancelled(DatabaseError databaseError) { | |
} | |
}); | |
on.setOnClickListener(new View.OnClickListener(){ | |
@Override | |
public void onClick(View view) { | |
FirebaseDatabase database = FirebaseDatabase.getInstance(); | |
DatabaseReference myRef = database.getReference(“LED_STATUS“); | |
myRef.setValue(1); | |
} | |
}); | |
off.setOnClickListener(new View.OnClickListener(){ | |
@Override | |
public void onClick(View view) { | |
FirebaseDatabase database = FirebaseDatabase.getInstance(); | |
DatabaseReference myRef = database.getReference(“LED_STATUS“); | |
myRef.setValue(0); | |
} | |
}); | |
} | |
} |
<?xml version=”1.0″ encoding=”utf-8″?> <manifest xmlns:android=“http://schemas.android.com/apk/res/android“ |
|
package=“com.example.root.fire_major_notification“> | |
<application | |
android:allowBackup=“true“ | |
android:icon=“@mipmap/ic_launcher“ | |
android:label=“@string/app_name“ | |
android:roundIcon=“@mipmap/ic_launcher_round“ | |
android:supportsRtl=“true“ | |
android:theme=“@style/AppTheme“> | |
<activity android:name=“.MainActivity“> | |
<intent-filter> | |
<action android:name=“android.intent.action.MAIN“ /> | |
<category android:name=“android.intent.category.LAUNCHER“ /> | |
</intent-filter> | |
</activity> | |
</application> | |
</manifest> |
So, that’s all for mapping your sensor data to Android app using firebase database and Arduino NodeMCU.
I'm selling Western Union , Bank and Paypal Transfers all over the world.
USA,UK,EU,Canada, Australia, Russia, Netherlands, China, Malaysia, France, Thailand, Ukraine. I'm getting much stuff through emails but also have a big experience in botnets etc. I've got 5 western union main computers data with the help of a strong botnet. Now I can change the info of a WU MTCN and can redirect any payment on any name. Simply I change the receiver name and country and payment goes to that person to whom i want to send. If anyone want to make big and instant money than contact me for deal. We do reliable work and give good service to all our clients. We make our clients for long time business. First we prove our work then make a deal.
Info needed for WU Transfers / Money Gram:-
1: First Name
2: Last Name
3: City
4: Country
Price List For WU Transfer / Money Gram / Paypal / Bank Transfer:
$1500 Transfer = $150 Charges
$2000 Transfer = $300
$3500 Transfer = $450
$4500 Transfer = $500
$5500 Transfer = $600
Terms & Conditions:
A person can take transfer once in a week and maximum 2 times in a month.
If anyone want to do regular business with me then you must have many bank accounts, Paypal, Money bookers and fake ids for western union because after 2 or 3 transfers in a week your Paypal and WU receiver details can be black listed or banned. So think before deal. Make big transactions and get a side and give other peoples chance or try to gather many fake accounts and work with me on regular basis.
You can Contact us 24/7
Email – Westernunionofficial.service@gmail.com
ICQ – 728 446 133
I'm selling Western Union , Bank and Paypal Transfers all over the world.
USA,UK,EU,Canada, Australia, Russia, Netherlands, China, Malaysia, France, Thailand, Ukraine. I'm getting much stuff through emails but also have a big experience in botnets etc. I've got 5 western union main computers data with the help of a strong botnet. Now I can change the info of a WU MTCN and can redirect any payment on any name. Simply I change the receiver name and country and payment goes to that person to whom i want to send. If anyone want to make big and instant money than contact me for deal. We do reliable work and give good service to all our clients. We make our clients for long time business. First we prove our work then make a deal.
Info needed for WU Transfers / Money Gram:-
1: First Name
2: Last Name
3: City
4: Country
Price List For WU Transfer / Money Gram / Paypal / Bank Transfer:
$1500 Transfer = $150 Charges
$2000 Transfer = $300
$3500 Transfer = $450
$4500 Transfer = $500
$5500 Transfer = $600
Terms & Conditions:
A person can take transfer once in a week and maximum 2 times in a month.
If anyone want to do regular business with me then you must have many bank accounts, Paypal, Money bookers and fake ids for western union because after 2 or 3 transfers in a week your Paypal and WU receiver details can be black listed or banned. So think before deal. Make big transactions and get a side and give other peoples chance or try to gather many fake accounts and work with me on regular basis.
You can Contact us 24/7
Email – Westernunionofficial.service@gmail.com
ICQ – 728 446 133
how can i add date and time new child added to the database ?
i want show sensor data and as well as the date and time when updated the time and date. please respond quickly. Waiting for your positive respond.
mail: e-labinnovations@gmail.com
Whatsapp: +918089931063
Unfortunately these factors mean that, in most cases, recovery services are quite expensive. Technician training, hard drive inventories and special equipment all come with a cost.
data recovery centre
scam
scam
scam
Hire Hacker
❤ BUSINESS FOR
SERIOUS BUYERS ONLY ❤
♣ BILLS PAY
♣ HOTEL BOOKING / AIR TICKET BOOKING
♣ BANK TRANSFER AVAILABLE
♣ WESTERN UNION TRANSFER AVAILABLE
♣ ATM / DUMPS / TRACKS
♣ CREDIT CARD / DEBIT CARD
We Also provide You To Transfer Money From any Hacked Bank Logins With No ChargeBack.
WE HAVE REPLACEMENT POLICY AND WE PROVE BEFORE ANY BUSINESS
INBOX ME ASAP
ICQ : 728612475
Gmail : arturooboris@gmail.com
It seems to be more dangerous; everything happens before you could see anything.gerald winata gozali
Hello world
We Only Make – The boss
Reseller :- Hacking Tools & Hacking services, Also Teach Hacking Methods Via teem weaver or Anydesk,
Each Method Take minimum 1 hour to learn with vedio Tutorial And Hacking Tools ,
How to Make Money With Method & luck ,
– Spamming & Tools ,
– Carding & Tools ,
– Virus with control panal and Spy bot files,
– Virus With Builder And Crypter ,
– Scanners with Bruters ,
– Crypters with Doc Exploits ,pdf Exploits ,TExtfile Exploits ,
– PHP Exploits with shell and mailer
– OTP verications Bypass with Bulletproof Scam-page and Otp control
– Company Ceo or cfo leads Any country
– Rat virus with builder
– Cookies Stealers and Builder
– keyloger and builder
– Credit card Scam-pages
– Bank login Scam-pages
– debit card topup scam page
– donation scam-page
– dhl login and tracking scam-page
– fedax login and tracking scam-page
– Shipping Tools
Place & Ground
learners you will pay cheap $ for demo Tools & Method
Business grounds
Credit card Low Interest Services,
– Credit card with Fullz Information – Minimum Investment 150$ – With 50k Credit limit And balance
– Debit Card Topup AS per Card limit – Minimum Investment 200$ – With 8000$ balance
– Dating scam Fresh male female Logins – Minimum Investment 80$ – Dating Login upto 30
– Tex refund Scam leads – Minimum Investment 200$ – Result upto 5000 in 10 days
– payments and Bills – Minimum Investment 300$ – upto 7000$
– Wester union Minimum Transfer 2000$ – Transfer Fess 400$
—————–
ABOUT US :
alberticeman0@gmail.com
Fake peoples on this comments section
watch it before contact anyone
https://scam-alert-report.blogspot.com/2019/02/scam-alert.html
Fake peoples on this comments section
watch it before contact anyone
https://scam-alert-report.blogspot.com/2019/02/scam-alert.html
Fake peoples on this comments section
watch it before contact anyone
https://scam-alert-report.blogspot.com/2019/02/scam-alert.html
Fake peoples on this comments section
watch it before contact anyone
https://scam-alert-report.blogspot.com/2019/02/scam-alert.html
Having a poor credit score is one big problem i will never wise to have again well with anonymousmaskhat@gmail. com am safe when it comes to fixing poor credit to Good credit. This hacker has really saved me and am happy to tell you all to contact the best @ anonymousmaskhat@gmail. com
Most times you need a hacker to figure out a lot of things for you when it comes to your relationship or marriage. I used verifiedprohackers@gmail. com service to gain access to 3 cell phones and all results came out successful.
My girlfriend has been lying to me telling me that her and her Ex are no longer together also told me that they were not communicating any more but all was lies cause Anonymousmaskhat@gmail.com was able to expose them and i found out the truth with a lot of proof of both phone hacked
Do you want to mine, generate or know more about bitcoins? the contemporary crypto currency bitcoins is a decentralized digital currency without a central bank or single administrator. Bitcoin mining and generator has been criticized for its high electricity consumption, price volatility and thefts from exchanges. Some economists, including several Nobel laureates, have characterized it as a speculative bubble. Bitcoin has also been used as an investment, although several regulatory agencies have issued investor alerts about bitcoin. Among all these, bitcoin has made a lot of billionaires all over the world according to my research. Surfing the internet, i came across this amazing website to mine and generate bitcoins easily (https://bitcoinzone.cash/btc/) and i made over $100,000 with ease.
You all can check it out and comment below.
if you are having doubts in your affairs and relationship please i will advise you to contact anonymousmaskhat@gmail.com
and know if He or she is true to you. Have been in a relationship of 3 years about getting married to her but i decided to know and be sure of my girl before any other thing then i found all the love she has been proposing to me where all fake. Thanks to anonymousmaskhat@gmail.com
Hacking into my husband Samsung A70 was very easy. All i did was to contact anonymousmaskhat@gmail.com and i got full access to my husband Samsung phone without physical access. Is this hacker not the best? i really appreciate your services anonymousmaskhat@gmail.com
nice artilce , thank you Admin . keep it up have a great day