This repository contains the tutorials and files needed to connect your AVR-IoT device to your own Google Project and deploy a site to Firebase. Once you've completed the tutorial, you'll be all set to view your live data.
Before getting started, you'll need to create a GCP project and enable billing, and create a Firebase project and link it to your GCP project.
-
Create (or select an existing) GCP project.
(Note: Links will open in this window. Shift+click, command+click, or middle mouse click to open in new window or tab.)
-
Enable billing for the project.
-
Launch the Firebase Console.
-
Select 'Add project'.
-
In the Project Name field, select the GCP project you created or selected above.
-
Click 'Add Firebase'.
git clone https://github.com/Leverege/microchip-avr-iot.git- cd into the microchip-avr-iot directory.
cd microchip-avr-iot- In the Cloud Shell, run
sh setup.sh-
At the prompt, enter your AVR-IoT device's ID. You can find this by scanning the QR code on your device.
-
The setup script will run for several minutes. The setup script will:
- Enable Cloud Functions, IoT, and Pub Sub
- Create an IoT Core registry called AVR-IOT and register your device
- Install, build, and deploy Cloud Functions and the UI
-
Make sure your device is connected to your computer via USB.
-
Open your IoT Core registry management page, and select the AVR-IOT registry.
-
Click on your device's ID in the list.
Because registry entries must begin with a letter your device ID will be prefixed with a 'd'. To search for your device by id, you must enter 'd<your_device_id>' in the search box.
-
Click the Add public key button.
-
Select 'Upload' under the input method, and ES256 (not ES256_X509) as the public key format. Then click the Browse button.
-
In the upload window, navigate to the CURIOSITY drive, then select PUBKEY.TXT and click add to upload it.
And that's it! Check out your new Firebase app at <your-project-id>.firebaseapp.com/device/<your-device-id> to view the live data coming from your device.





