Skip to content

Instantly share code, notes, and snippets.

View vishal-android-freak's full-sized avatar
🤓
Full Stack, both in career and life.

Vishal Dubey vishal-android-freak

🤓
Full Stack, both in career and life.
View GitHub Profile
#include <FirebaseArduino.h>
#include <ESP8266WiFi.h>
// Set these to run example.
#define WIFI_SSID "YOUR_WIFI_SSID"
#define WIFI_PASSWORD "YOUR_WIFI_PASSWORD"
#define FIREBASE_DB_URL "your_firebase_url"
#define FIREBASE_DB_SECRET_KEY "your_database_secret_key"
void setup() {
Serial.begin(115200);
@vishal-android-freak
vishal-android-freak / index.js
Last active October 30, 2019 02:54
Firebase cloud function
const functions = require('firebase-functions');
const admin = require('firebase-admin');
admin.initializeApp();
const DialogflowApp = require('actions-on-google').DialogflowApp;
exports.receiveAssistantRequests = functions.https.onRequest((request, response) => {
const app = new DialogflowApp({request: request, response: response});