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

Adding RC Transmitter/Receiver to Control Mecanum Bot
  • 374
  • 6

Full instructions

We previously showed our Mecanum Bot being controlled by a wireless Xbox controller, now we added RC transmitter/receiver.

Face Detection Using OpenCV With Raspberry Pi
  • 1,659
  • 13


In this project, we are going to detect faces using OpenCV with Raspberry Pi.

Automated GPS Controlled Photo Taker
  • 1,567
  • 19

Full instructions

For this build, I put together a backpack to take pictures when I am close to places that like. And what better place to test than London?

Creating an IoT Server with Home Assistant and MQTT
  • 1,774
  • 8

Full instructions

Home Assistant is one powerful home automation platform and it is complacently open source. Access it from any web browser and automatons.

DIY Smart Assistant Speaker/Lamp (Google Home or Alexa)
  • 1,517
  • 5

Full instructions

DIY build using 3D printed enclosure and parts, a recycled Bluetooth speaker, a Raspberry Pi, and a Philips Hue light bulb.

ConnectTheDots with Particle Azure IoT Hub Integration
  • 475
  • 6


This project will allow you to connect your Particle device into an Azure IoT Hub for viewing data in real-time through an ASP.NET web app!

ProjectsCommunitiesTopicsContestsLiveAppsBetaFree StoreBlogAdd projectSign up / Login