Things used in this project


Quando criado um novo projeto no Visual Studio 2015, cole o código no MainPage.xaml.cs que já é criado automaticamente.
/*MainPage.xaml.cs Code
By: Leonardo Gonçalves - Inatel - Minas Gerais - Brazil
using System.Net.Http;
using Windows.Devices.Gpio;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;

// The Blank Page item template is documented at

namespace App3
    /// <summary>
    /// An empty page that can be used on its own or navigated to within a Frame.
    /// </summary>
    public sealed partial class MainPage : Page
        public MainPage()
            textBox2.Text = "2001";
        public void GPIO()
            // Get the default GPIO controller on the system
            GpioController gpio = GpioController.GetDefault();
            if (gpio == null)
                return; // GPIO not available on this system

            // Open GPIO 5
            using (GpioPin pin = gpio.OpenPin(5))
                string pinstate = pin.Read().ToString();
                if (pinstate == "Low")
                    textBox3.Text = "0";
                    textBox3.Text = "1";

                // Set the IO direction as output

            } // Close pin - will revert to its power-on state 

        private async void button_Click(object sender, RoutedEventArgs e)
            textBox3.Text = "2001";
            HttpClient client = new HttpClient();
            string url = "";
            url = string.Concat(url, textBox2.Text);
            url = string.Concat(url, ",");
            url = string.Concat(url, textBox3.Text);
            url = string.Concat(url, ")");
            HttpResponseMessage response = await client.GetAsync(url);
            string x = response.StatusCode.ToString();
            string y = await response.Content.ReadAsStringAsync();
            textBox1.Text = x + y;


1510947 574075536015733 1458936564 n
Leonardo Ribeiro Gonçalves

Master Degree Student at Federal University of Itajuba - Brazil / Telecommunications Engineer graduated at Inatel - Minas Gerais - Brazil



Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback


Similar projects you might like

Horus: The Weather Station
  • 312
  • 5

Full instructions

A Raspberry Pi-based weather station that measures temperature, humidity and pressure using the Astro Pi Sense HAT and uploads the data.

Raspberry Pi Motion Tracking Gun Turret
  • 8,347
  • 20

Full instructions

A motion tracking airsoft or Nerf gun turret with autonomous and manual operation modes, controlled by a Raspberry Pi.

Simple Weather Station with amazing web monitoring
  • 998
  • 8

Full instructions

Do you want see from anywhere what is the temperature, pressure and humidity in your house? If yes this project will show you how to do it.

How To Configure Moonlight For Steam Using JustBoom
  • 88
  • 2

Full instructions

This guide will show you how to install Moonlight for Raspbian and configure it for your JustBoom to stream games from your PC.

LoRaWAN for Raspberry Pi with Worldwide Frequency Support
  • 4,368
  • 18

Full instructions

LoRaWAN LMIC 1.6 for Raspberry Pi with Dragino LoRA/GPS HAT or standalone RFM95W LoRa Module.

Magic VR Hat
  • 788
  • 8

Wear the hat, get transported to different 360 VR experience.

Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaFree StoreBlog