Showing posts with label WinPI. Show all posts
Showing posts with label WinPI. Show all posts

Wednesday, December 11, 2013

Getting your app's "close", using Windows 8.1/WinRT and Wifi-Direct and Proximity API's

St├ęphanie Hertrich - WinRT : Transferring a file between 2 peers using Wifi-Direct and Proximity API

On Windows 8.1 and WinRT, Wifi-direct enables wireless direct communication scenarios between devices executing the same application. That means you can exchange data between peers in areas without any internet network connectivity. All you need is a device that supports Wifi-Direct technology (Surface RT does, as well as most Windows 8 devices). This is complementary to the Share charm functionality which helps sharing data between 2 apps on the same machine. Here you will share stuff on different machines that are executing the same app.

Wifi-direct can be a good alternative to NFC for some scenarios : you don’t need any NFC hardware but still can communicate between several close peers without network connectivity. If ever you want to test NFC but you don’t have the appropriate hardware, I wrote an article explaining how to install an NFC simulator driver on Windows 8.1 : Windows 8.1 : How to use Near-Field Proximity API without NFC hardware.

Wifi-direct communication is made possible thanks to the Proximity API (just like NFC does, but with different scenarios).

Here is a small lib providing the Wifi-direct file transfer functionality and its sample demo application so that you can test it.

Please be aware that this was not tested for production : if you use it as is, it is at your own risks.

In this article, you will find:

  • how to use the lib and the sample app
  • behind the scene : how the Proximity API handles Wifi-direct
  • more possibilities for Wifi-direct scenarios

How does the lib work ?

The WifiDirectTransfer library is based on the Proximity API. It is VERY easy to use : you just need 3 lines of code.

The lib contains a WifiDirectFileTransfer class.

image

..."

While I'm very likely going to highlight this in a future Coding4Fun Blog post, I wanted to call it out here as this post really looks like it makes Wifi-Direct enabling your applications easy. So now you can build your next awesome app and while in the car, plane, train this holiday you can share your data, no net required! Imaging building your kids a card game where they can share or trade cards. No wait! A license plate game where they are take pictures of plates and then trade them... hum... Thinking about that, a recent post I did on the C4F blog might come in handy too, Windows 8.1, Windows Phone, NFC, Bluetooth and help in building connected app's.

Wednesday, January 26, 2011

Click’less WebPI … as in a command line WebPI (Web Platform Installer)

Satish Lalam's Blog - Webpi Command Line

“Our much loved Web Platform Installer (WebPI) now has a command line interface. Yes that’s right. Now it is possible to do everything that you could do in Webpi UI, from the commandline.

Think scripting! Think automation!

WebPI is a simple but powerful tool for discovering, installing and configuring Microsoft’s Web Platform Products. It has been 2 years of great journey for the Webpi team shipping 3 versions. It has been a great partnership with the community. We have been aware of the feedback we received from the community for a way to be able to automate Webpi Tasks. So, here we are releasing WebpiCmdline, which is the short for ‘Web Platform Installer Command line’.

Usage Overview

It is recommended to run WebpiCmdline from a Command Prompt which is opened as Administrator. (Otherwise, WebpiCmdline will elevate itself and launch a new window which will close as soon as it is done.) To open a command prompt as “Administrator” on Windows Vista or Windows 7, type “cmd” in the start menu, Press Shift and then Right click the cmd.exe, select “Run as Administrator”. Accept UAC if necessary. Change directory at the cmd prompt to the folder where you have installed WebpiCmdline.

WebpiCmdline usage can be broadly categorized into two modes

Install Mode:

List Mode:

pagesnap…”

Given the GUI nature of WebPI, having an automatable/scriptable option is pretty cool…