#VSGALLERY – Connected Service for #AzureIoTHub, a great time saver !!!

Hi !

Another Visual Studio Extension’s Friday, now with almost a repost from Greg Duncan original post in Channel9. However, this extension allows you avoid plenty of configuration steps if you want to work with Azure Iot Hubs. You only need to focus on your app business needs: Send or receive data from the Azure IoT Hub.

So, a simple way to describe this is with a quick step-by-step

  • Install the extension from Visual Studio Gallery
  • Create a Console App
  • Add a new Connected Service

Clipboard02

  • Follow the wizard steps to connect to the correct Azure IoT Hub
  • Select “Azure IoT Hub” and click “Configure”

Clipboard04

  • You need to enter your Azure credentials, and the wizard will retrieve the list of available Azure IoT Hubs you have in your Azure subscription

Picture1

  • You must select the Azure IoT Hub, and connect to this Hub
  • After you connect to the Hub, the wizard will display the list of devices who are already defined and configured to use this device
  • You can select one device or create a new one. For the sample, I’ll go with my Device01 sample device

Clipboard07

  • So, now is time for code generation
  • A couple of NuGet packages will be added into the project

Clipboard09

  • After this, a couple of new items are included in our project.

Clipboard11

  • Maybe the most important is the AzureIotHub.cs class. This class has 2 main methods
    • SendDeviceToCloudMessageAsync(), to send messages to the IoT Hub
    • ReceiveCloudToDeviceMessageAsync(), to start listening to messages from the IoT Hub 
  • To send data, we only need to call the 1st method like this

Clipboard14

  • That’s it in terms of Hello World project. However there are some additional tasks to do.
  • First one will be to move away and secure the Azure IoT Hub connection string from the class to a more secure place. The wizard stores this information in a simple text constant. Which is good to test and debug, but not so good for a final release.
  • Next step will be probably, make some updates to the main 2 methods. As you can see in the next image, the send message method, send an static “Hello Cloud” message. I’m sure that your app will require some extra information here

Clipboard16

  • More detailed steps are included in the GitHub page

So, this will be my basic review of the extension, which is basically a time saver !!!

Greetings @ Toronto

-El Bruno

References

Advertisements

#VS2015 – Microsoft Band Diseñador de Tiles para #VisualStudio2015

Hola !

Hoy es viernes de extensiones para Visual Studio. Y la de hoy, es especialmente agradable. Porque, aún teniendo poca experiencia en desarrollo para la Microsoft Band, una de las cosas que más tiempo me requerían cuando estaba con la Band era la creación de las vistas (tiles) en las apps.

El nombre de esta extensión ya te da una idea de lo que hace la misma, así que no entraré a describirla. El proceso que solía seguir yo, cuando trabajaba con la Band, era hacer mis diseños en “papel” y luego “traducir” los mismos a vistas de código. Algo que no era muy agradecido ni tampoco divertido, es por eso que cuando ví esta extensión en la Visual Studio Gallery solo pude decir GRACIAS !!!

En la página del producto en Visual Studio Gallery product existe mucha información sobre el mismo: proceso de instalación, tipos de projectos soportados, etc. Yo creo que optaré por mostrar lo mejor de la misma con una animación de 20 segundos

2016 03 17 Msband Tile Designer Preview

Saludos @ Toronto

– El Bruno

References

#VSGALLERY – Microsoft Band Tile Designer for #VS2015

Hi !

Visual Studio Extension’s Friday on Thursday !!! This is great, and based on my little experience, this will save plenty of time to Microsoft Band developers.

The name of the extension already gives you an idea of the main purpose. And after design some tiles using paper and later “translate” this paper design into code views, I can only say THANKS MS DUDES !!!

In the Visual Studio Gallery product page are plenty of information about installation, supported projects, etc. I think the best way to describe the product is with a 20 seconds animation

2016 03 17 Msband Tile Designer Preview

Greetings @ Toronto

– El Bruno

References

#VS2015 – #SuperCharger, the #CodeMap evolution

Hello!

Today is a quick post, because my international moving takes a lot of time  Some time ago I tried CodeMap, I was was an excellent idea and a great tool. Although to really use it well, you had to have a “very bad” C# classes.

I mean, we all dream of being those great talent developers who write code as if it were a poetry of Neruda. To get to this level, you must spend hours, many hours of practice and study. Also you also must have passion as something that is not found in many people: “be better in every challenge you face“.

As well, after these non-sense paragraphs, let’s see what’s new in SuperCharger. This tool comes to fill the gap left as large developers for surf classes with thousands of lines, with that nice friend called REGIONS, and of course, add color to our methods to differentiate between them. Here is an example

2016 02 01 SuperCharger Extension

Let’s get serious, I think that it a great tool. I am also aware that even though everybody tries to respect the SOLID principles, the design of our classes can be a little chaotic. In these cases, SuperCharger is a great helper!

Greetings @ Madrid

-El Bruno

References

#VS2015 – #SuperCharger, la evolucion de #CodeMap

Hola!

Hoy toca un post rápido que la mudanza internacional requiere mucha dedicación. Cuando hace un tiempo probé CodeMap, la sensación que me quedó era la de una excelente idea. Aunque para poder sacarle realmente provecho tenías que tener unas clases “muy malas”.

Me explico, todos soñamos con ser esos developers de talento grandioso que escriben código como si fuese una poesía de Neruda. Para alcanzar ese nivel, se requieren horas, muchas horas de práctica y estudio. Además tener como pasión algo que no se encuentra en muchas personas : “ser mejor en cada desafío que se me presenta”.

Pues bien, después de estos párrafos etéreos, veamos lo nuevo de SuperCharger. Esta herramienta vViene a rellenar el hueco que dejamos como grandes developers para navegar en clases con miles de líneas, con ese agradable amigo que son las REGIONS, y como no: agregar colorines a nuestros métodos para que los mismos se diferencien entre ellos. Veamos un ejemplo

2016 02 01 SuperCharger Extension

Rebajando un poco el tono, creo que la extensión es buenísima. También soy consciente de que si bien, todo el mundo intenta respetar los principios SOLID, el diseño de nuestras clases puede ser un poco caótico. En estos casos, SuperCharger es un ayudante genial!

Saludos @ Madrid

-El Bruno

References

[#VS2015] Ding on build, Ding on error, Ding on success tests … Dings anytime !!! (now you can choose)

Hi!

More than a year ago, I wrote a small review of an interesting extension for Visual Studio. This extension plays a sound (bip) on some events in the IDE: Build Sucess, Build Failed, Test Run, etc. I really like the idea, however that version only have one sound for everything.

So I kindly ask the owner of the tool to add this feature and he did it !!! Vitalii you rock men!

Now the extension has an interesting settings options where you can define if you want the sound or not, and also the sound to be played!

image

Greetings @ Madrid

-El Bruno

References

[#VS2015] Ding on build, Ding on error, Ding on success tests … Dings en todo momento !!! (ahora podemos elegir)

Hola!

Hace bastante tiempo escribí un small review sobre una extensión para Visual Studio que nos permitía reproducir un sonido (ding) en varios eventos dentro del IDE:Build Sucess, Build Failed, Test Run, etc. La idea estaba muy bien, sin embargo en ese momento el AddIn solo soportaba el mismo sonido para todos los eventos.

En la página de Visual Studio Gallery, amablemente le pedí al dueño que agregara un poco de configuración a la herramienta y lo ha hecho !!! Vitalii you rock men!

Ahora podemos definir que eventos queremos capturar y que sonidos queremos reproducir! image

Saludos @ Madrid

-El Bruno

References

#VS2015 – VS Touch useful extension to work in #TouchMode in Visual Studio

Hi!

I didn’t write any post for my Visual Studio Friday Extension series, so I’ll start to share a couple of them even if today is not Friday. Today’s extension is very useful if you are using a touch enabled device, for my is very useful to be used with my Surface Pro 3 : VS Touch.

We perform a touble tap action and we get a radial menu with a nice seto of options. In the following video you’ll see the options to get Build > Build and also View > Error List.

2015 12 21 VS Touch

So, if you use Visual Studio 2015 in a touch enabled device, my suggestion is to give it a try. And, if you want to also extend the AddIn, you can also find the Source Code available in GitHub.

Greetings @ Madrid

– El Bruno

References

#VS2015–VS Touch util extensión para trabajar en modo Touch con nuestro IDE

Hola!

Tengo un poco abandonada los viernes de extensiones así que me pondré al día con un par por semana. Hoy toca el momento de comentar una que utilizo mucho en la Surface Pro: VS Touch.

Con solo un doble tap en la pantalla tenemos acceso a opciones bastante útiles. En el video adjunto podemos ver como en el primer ejemplo accedo al menú Build > Build y luego a View > Error List.

2015 12 21 VS Touch

Si trabajas con Visual Studio 2015 en un entorno táctil, seguro que te es de utilidad. Además, si deseas agregarle más opciones o extenderla un poco más, pues tienes el código accesible desde GitHub.

Saludos @ Madrid

– El Bruno

References

#VS2015 – Create all graphic Assets for your #UWP app from a single image

Hi!

A couple of months ago I wrote a post where I show a tool which automates the creation of all the image assets to be used in the Visual section of the manifest in a Windows 8 / Windows 10 app.

A couple if days ago, I found a similar extension [Windows Universal App Image Scaler], this one is for Visual Studio 2015. The main difference is that we need to start in a png file, and a big one so it can start the creation of assets “top down”

Clipboard01

Greetings @ Madrid

-El Bruno

References