How to specify multiple device capabilities for Bluetooth (Windows Runtime apps)

I am trying to specify two different DeviceCapability 
<m2:DeviceCapability Name="bluetooth.rfcomm">
      <m2:Device Id="any">
        <m2:Function Type="name:serialPort" />
      </m2:Device>
    </m2:DeviceCapability>
    <m2:DeviceCapability Name="bluetooth.genericAttributeProfile">
      <m2:Device Id="any">
        <m2:Function Type="serviceId:00001809-0000-1000-8000-00805f9b34fb" />
        <m2:Function Type="serviceId:00002a19-0000-1000-8000-00805f9b34fb" />
      </m2:Device>
    </m2:DeviceCapability>
Unfortunately it not work for "bluetooth.rfcomm".
Do i need to re-sequence this two DeviceCapability ?

Below is my code that i am using for Bluetooth Printer
private async static Task<bool> VerifyPrinter()
bool isConnected = false;
try
// look for any paired device
PeerFinder.AllowBluetooth = true;
// start looking for BT devices
PeerFinder.Start();
// locate devices that support the serial port profile
PeerFinder.AlternateIdentities["Bluetooth:SDP"] = "{00001101-0000-1000-8000-00805F9B34FB}";
IReadOnlyList<PeerInformation> available_devices;
//Find All paired devices
//NOTE: If device is connected then it won't get that device details here
// Even after that device is paired
try
available_devices = await PeerFinder.FindAllPeersAsync();
catch (Exception exception)
throw;
//Convert available devices to list
var peerDevices = available_devices.ToList();
//Find specific device using mac address
foreach (var item in peerDevices)
if (item.HostName != null)
string result = Regex.Replace(item.HostName.DisplayName, @"[^0-9a-zA-Z]+", string.Empty);
if (result == StaticMembers.PrinterMacAddress)
PeeredPrinter = item;
PrinterHelper.Status = ManagerStatus.Idle;
isConnected = true;
break;
//If Peer is not found then save old mac address
if (PeeredPrinter != null)
await ConnectToPrinter();
catch (Exception ex)
if ((uint)ex.HResult == 0x8007048F)
PrinterHelper.Status = ManagerStatus.LostConnection;
ShowBluetoothcMessageDialog();
else if ((uint)ex.HResult == 0x8007271D)
PrinterHelper.Status = ManagerStatus.LostConnection;
//0x80070005 - previous error code that may be wrong?
StaticMembers.displayMessage("Something went wrong.");
else if ((uint)ex.HResult == 0x80072740)
PrinterHelper.Status = ManagerStatus.FailedToGetConnection;
StaticMembers.displayMessage("The Bluetooth port is already in use.");
else if ((uint)ex.HResult == 0x8007274C)
PrinterHelper.Status = ManagerStatus.FailedToGetConnection;
StaticMembers.displayMessage("Could not connect to the selected Bluetooth Device.\n Please make sure it is switched on.");
else
PrinterHelper.Status = ManagerStatus.LostConnection;
StaticMembers.displayMessage(ex.Message);
return isConnected;
private async static Task ConnectToPrinter()
MessageDialog messageDialog = null;
//Check if lost connection or Failed to connect to device
if (PrinterHelper.Status == ManagerStatus.LostConnection || PrinterHelper.Status == ManagerStatus.FailedToGetConnection)
//ShowBluetoothcMessageDialog();
return;
//If peer is null;
if (PeeredPrinter == null)
StaticMembers.displayMessage("Please setup printer.");
//PrinterHelper.VerifyPrinter(MACAddress); //TODO:Will check this logic
return;
try
//If Bluetooth is idle then connect to printer
if (PrinterHelper.Status == ManagerStatus.Idle)
await streamSocket.ConnectAsync(PeeredPrinter.HostName, PeeredPrinter.ServiceName);
//Update the status of Bluetooth status
PrinterHelper.Status = ManagerStatus.GotConnection;
catch (Exception er)
PrinterHelper.Status = ManagerStatus.LostConnection;
StaticMembers.displayMessage("Please check blue-tooth device is turn on or not.");

Similar Messages

  • So how to specify different answer file for different install images in WDS snap-in?

    hello
    in WDS snap-in, in properties on server name, on client tab, we can define an answer file for unattended windows installation on WDS clients.
    my question is, maybe we have added multiple images in WDS snap-in (win xp image, win 7 , win 2008,...)
    now this one answer file applies to all of them ?
    so how to specify different answer file for different install images in WDS snap-in?
    thanks in advanced 

    Under the "Client" tab of WDS, you should only use an answer-file with settings relevant for the installation. This would be credentials for the WDS deployment share, international settings used during the setup and possibly also destination drive
    details (if you want the installation to take care of partitioning the disk etc). The settings relevant for unattend-files used under "Client" would only be of those in phase 1 (WinPE).
    However, if you would like to have specific unattend file for every installation, e.g. Win7, Server 2008, Win 8 etc, you can browse to the image under "Install Images" under the image Groups. There you can select properties for every image and
    have a personal unattend-file.
    hi Joel
    very cool. thanks a lot, that really helped me.
    best regards

  • How to use multiple VCI strings for lap 1300 and 1200 (option 60) in one pool?

    Hi All,
    Hope to you a very happy new year,
    I have two differnt LAP 1300 and 1200 in my network and I need to add theme to the WLC,
    I successed to add one of theme by the option 60 in the DHCP pool at the Core SW,
    So my quetion is below:
    How to use multiple VCI strings for lap 1300 and 1200 (option 60) in one pool?
    Thanks in Advanced,
    Ahmed,

    To add to Scott's post.  Option 60 would be useful if you needed to put certain types of AP on specific controllers.  Otherwise, no real need to use it for the most part.
    Though, I do recall an issue a few years ago that some windows machines had issues getting DHCP if option 43 is being returned.
    Now, on an IOS switch, you can only configure one option 60 per DHCP scope
    HTH,
    Steve
    Please remember to rate useful posts, and mark questions as answered

  • How can I make a shortcut for bluetooth in my iPhone 4 ?

    Hello everyone
    How can I make a shortcut for bluetooth in my iPhone 4 ?

    sorry not that I know of, out of the box that is, would be heady to quickly change between headset and normal mode though
    let apple know you want this feature
    http://www.apple.com/feedback/iphone.html
    there are 3th party solutions though
    http://www.macrumors.com/2012/04/17/new-app-turns-bluetooth-on-and-off-with-one- touch/

  • How to specify multiple listeners in the init/spfile

    hi experts,
    can u explain me How to specify multiple listeners in the init/spfile ?

    you do not specify linsteners in spfile.
    The easiest way to configure more listeners is to use Net Configuration Assistant tool.

  • How to set multiple ORACLE_HOME and ORACLE_SID, on Windows

    How to set multiple ORACLE_HOME and ORACLE_SID, on Windows.
    I have 5 oracle instances. Every time if i want to start up the services , I am manually setting the environment variable (ORACLE_HOME and ORACLE_SID) and starting the services one at a time.
    Can we set multiple ORACLE_HOME and ORACLE_SID in Start->My computer-> properties-> advance-> Environment variable.
    Thanks
    Naveen

    Hi ,
    Can you please give me the link, for the doc you are referring to
    Thanks
    Naveen

  • How to Install and Configure Workflow For PO in Oracle Apps Version R12

    Hi,
    Please do let me know how to install and configure Workflow for Purchasing in Oracle Apps R12 Version.
    I want to the standard setup of workflow configuration for the PO.
    Thanks and Regards
    Srini

    Hi Suresh
    Only the latest version of WLP which is WLP 10.3.2 has facility to integrate with Oracle UCM with Adapaters. So make sure that you do have this latest version of WLP 10.3.2. Older versions like WLP 10.3 do not have this provision.
    Also I guess when you install and configure this Oracle UCM Adapater and choose above WLP Home, I guess these modules may be added in already installed WLP folders. I checked on my side for WLP 10.3.2 and I could NOT find the modules you mentioned. So most probably you may be missing some installation/configuration stuff from UCM side.
    Thanks
    Ravi Jegga

  • How to specify html5 fallback source for Apple devices?

    I see that SMP will support both Flash and HTML5 video formats. However, I don't see where I can give more than one video source. I am using FMS 4.5 and have both HDS and HLS streams available. I was putting them in different containers (one using html5 tags, the other using SMP) on the same web page, but am looking at combining them to be more elegant. Is this something that can be done with SMP?

    Nuts. JW Player works great for canned videos that are on the same server as JW Player, but when I try to play live streaming video from Amazon Cloudfront using JW Player stored on a different AWS server, I get cross domain errors.
    I don't get those errors when running Strobe Media Player hosted by Adobe. So, I'm back where I started. How do I specify multiple sources in SMP?
    If I can't do that, I guess I'll have to set up EBS on the Amazon server that hosts the Flash Media Server so I can put the JW Player files on it and not have to recopy it every time I bring the server up...

  • How to use Multiple Single Option for selection in the Customer Exit

    Hi,
    How can we handle the multiple single values in the customer exit variable.
    I have a requirement which is as follows -
    Table A fiields -> Field Coach, Partner 2, Relation between PArtner 1 & Partner 2, Valid from, valid to date.
    Table B ->  Service Month, Start Date, End Date.
    Table C -> Billing Date, Execution Partner,cal month /year.
    For the Field coach in TABLE A, multiple Partner 2 are present.
    Report has to be built on Table C.
    User inputs the Service month and Field Coach . User can enter multiple field coach values.
    For the All the Field Coach values entered, corresponding Partner2's have to be found from Table A and to be passed to the Execution Partner in Table C.
    Now if we want to use customer exit variable on the field Execution Partner, how can we handle the Multiple Single selections in the customer exit.
    Thanks,
    Shubham

    Hi,
    While creating the variable you must have to specify multiple value.
    In customer exit
    write code multiple times and append the values.
    For example:
    when 'variable'.
    l_s_range - sign = 'I'.
    l_s_range - OPT = 'EQ.
    l_s_range - LOW = EXECUTION PARTNER 1.
    APPEND L_S_RANGE TO E_T_RANGE.
    l_s_range - sign = 'I'.
    l_s_range - OPT = 'EQ.
    l_s_range - LOW = EXECUTION PARTNER 2.
    APPEND L_S_RANGE TO E_T_RANGE.
    l_s_range - sign = 'I'.
    l_s_range - OPT = 'EQ.
    l_s_range - LOW = EXECUTION PARTNER 3.
    APPEND L_S_RANGE TO E_T_RANGE.
    Regards,
    Ranganath.

  • /em/console/notif/addMetrics, How I specify multiple file systems?

    People,
    In EM 10gR2,
    How do configure
    Filesystem Space Available (%)
    metric which I find here:
    /em/console/notif/addMetrics
    It seems obvious if I have just 1 file system to monitor.
    I just type in /u01 for example.
    How do I specify multiple file systems?
    Do I separate each file system name by a comma:
    /u01, /u02, /u03
    ...Peter
    http://GoodJobFastCar.com

    You can use like /u0*

  • SRP547W, How to use multiple WAN IPs for port forwarding?

    Hi folks,
    We've run into some difficulty trying to take advantage of multiple WAN IPs in conjunction with the SRP547, and I'm hoping someone here can help out or at least tell us that we're going to need to buy a different router...
    What we're trying to acheive is the ability to port forward from our distinct public IPs to different internal servers. Looking at the options under Port Forwarding it looks like we can only configure forwards at the "WAN interface" level, but our problem is that we can't work out how to set up separate interfaces for each of our Public IPs...
    Our ISP provides us with a fully managed NTU/router with a single "Internet" ethernet port, which we can use by statically configuring IPs on our end. For this configuration this port has been directly patched to the WAN ethernet port on the SRP547W.
    We have been allocated a 255.255.255.248 (/29) subnet, giving us 5 usable IPs after the ISP's gateway address is taken into account, like so:
    a.b.c.208     Network Address (/29 subnet)
    a.b.c.209     ISP Gateway
    a.b.c.210     IP1
    a.b.c.211     IP2
    a.b.c.212     IP3
    a.b.c.213     IP4
    a.b.c.214     IP5
    a.b.c.215     Broadcast Address
    On the SRP we've set up the default "Ethernet WAN2" sub-interface with the following details for IP1
    VLAN ID:               4088 (Uneditable)
    Connection Type:       Static IP
    Internet IP Address:   a.b.c.210
    Subnet Mask:           255.255.255.248
    Default Gateway:       a.b.c.209
    The next step (I would have thought) would be to add a second sub-interface, using similar info for IP2
    VLAN ID:               4000 (Chosen arbitrarily)
    Connection Type:       Static IP
    Internet IP Address:   a.b.c.211
    Subnet Mask:           255.255.255.248
    Default Gateway:       a.b.c.209
    When we try to do so however we get:
    Fail!
    Conflict with Ether_WAN2 interface address type
    I should mention at this point that we're running on firmware version 1.02.01 (023).
    Any suggestions on how we can proceed?
    Is there a CLI or other method of configuration that might work if the web interface won't?
    Thanks,
    Tim.

    OK, I've seen reference to this solution before but not much in the way of details. Perhaps you can spell out how this ought to work, as the Software DMZ doesn't behave as I'd expected it to.
    As before, on the SRP we've set up the default "Ethernet WAN2" sub-interface with the details for IP1 with a /29 subnet.
    VLAN ID:               4088 (Uneditable)
    Connection Type:       Static IP
    Internet IP Address:   a.b.c.210
    Subnet Mask:           255.255.255.248
    Default Gateway:       a.b.c.209
    We'd now like to expose a server function on IP2, let's say LAN details for this server are:
    VLAN:                  3000
    VLAN IP Range:         192.168.1.1/24
    Server IP:             192.168.1.10
    Server Port:           80
    So first we turn on Software DMZ:
    Status:                Enabled
    Public IP:             a.b.c.211
    Private IP:            192.168.1.10
    WAN Interface:         Ether_WAN2
    My understanding, based on what you've said, is that this should expose the whole server to external access via IP2. Unfortunately, it doesn't seem to work this way - we don't seem to have any access at all. Perhaps there's a default deny rule on the firewall?
    Just to be sure, I tried creating a rule to allow HTTP traffic to the server in the Advanced Firewall page.
    In Interface (WAN):    All
    Out Interface (LAN):   VLAN.3000
    Source IP:             0.0.0.0
    Source Subnet:         0.0.0.0
    Destination IP:        192.168.1.10
    Destination Subnet:    255.255.255.255
    Protocol:              TCP
    Source Port:           Any
    Destination Port:      Single:80
    Action:                Permit
    Schedule:              Everyday
    Times:                 24 Hours
    Still no dice. What am I missing?
    Cheers,
    Tim.

  • How to add multiple devices to find my iPhone app

    I am trying to add several iphone devices so I can keep track of kids phone. Does anyone know how to add multiple phones?

    Welcome to the Apple Community.
    settings > iCloud > Find my Phone on each device.

  • How to connect multiple Xserve Raid for Best Performance

    I like to get an idea how to connect multiple Xserve Raid to get the best performance for FCP to do multiple stream HD.

    Again, for storage (and retrieval), FireWire 400 should be fast enough. If you are encoding video directly to the external drive, then FireWire 800 would probably be beneficial. But as long as the processing of the video is taking place on the fast internal SATA drive, and then you are storing files on the external drive, FireWire 400 should be fine.
    Instead of speculating about whether it will work well or not, you need to set it up and try your typical work flow. That is the only way you will know for sure if performance is acceptable or not.
    For Time Machine, you should use a single 1.5TB drive. It is likely that by the time your backup needs comes close to exceeding that space, you will be able to buy a 3TB (or larger) single drive for the same cost. Also, I would not trust a RAID where the interaction between the two drives is through two USB cables and a hub. If your primary storage drive fails, you need your backup to be something that is simple and reliable.
    Oh, and there should be no problem with the adapter, if you already have it and it works.
    Edit: If those two external drives came formatted for Windows, make sure you have use Disk Utility Partition tab to repartition and reformat the drive. When you select the drive in the Disk Utility sidebar, at the bottom of the screen +Partition Map Scheme+ should say *GUID Partition Table*. When you select the volume under the drive in the sidebar, Format should say *Mac OS Extended (Journaled)*.

  • How to avoid multiple password prompt for intarnet portal

    we have developed a intranet portal in Share Point 2013 with multiple site collection. when accessing through IE, Chrome, we can do settings to avoid multiple password prompt by adding the domain name of site in Trusted sites. How we can achieve the same in Safari while accessing through MAC or IPAD

    first time when you call the BSP application from the browser (or by double clicking the BSP_APPLICATION link from SAP GUI) you need to pass user credentials. For further windows this will not be required as browser will remember your info.
    if you need to <b>somehow</b> avoid this then the only option is to hard code the user id and password in the service in transaction SICF or by passing the same via URL.
    Another option is that if you port this application in a SAP portal environment, SSO can be used .
    Hope this helps.
    Regards
    Raja

  • How to get multiple output formats for each execution of the report?

    Hi,
    Is it possible to get multiple output formats for each execution of the report? If so can you provide some details?
    Thanks

    In Reports 6i, Reports Distribution was introduced. This allows you to run the report once and output to a number of destinations with a different format. It also allows you to distribute individual sections within a report to different destinations in different formats.
    The Destinations for a Report to distribute to are defined either in a distribution file and passed on the command line or inside of the report definition.
    To add a destination to the the report definition, bring up the property palette against the report object and then select the "Distribution" property under the "Report" node. This will bring up a dialog that allows you to create a distribution list. You can then test this list by selecting "file->distribute" from the menu.
    To run a report that is to be distributed through rwrun60, you need to add "distribute=yes" to the command line. It will pick up the destinations from the report definition. If you add "destination=<filename>" then it will pick up the destinations from the specified "<filename>" and ignore the destinations in the report definition.
    Note: if "distribute=yes" is specified on the command line then the destype/desname/desformat parameters will be used to format the report (ie: which printer/display to use during formatting for sizing objects) but will be ignored when the report is sent to the destinations.

Maybe you are looking for

  • Question RE Editable PDF

    My problem is ... I am working with a Nightingale-Conant program from Garrett Gunderson called "New Rules To Get Rich," which has a PDF workbook to download.  However, after having copied the workbook to my computer as instructed (twice now) when I r

  • Lines in my photos

    the hp all in one photosmart 7520 has been a nightmare-so user unfriendly.  I've had hp's before that printed photos like a dream. I'm ready to toss this out the window.  Now, that I thought I had everything set up I go to print and have fine lines i

  • Is there a fixed directory structure where we put our application?

    the samples .java files I find in \ias6\ias\ias-samples\database\hellodb\src\samples\hellodb\servlet ... I need to know if there is a directory structure that I should follow that iPlanet need when I deploy my application? like where do I put my .jsp

  • HT1923 i"m unable to open my itunes

    having problems with itunes software unable to open

  • HT4623 im trying to update my computer to 10.6.3

    Im trying to update my computer with latest version of itunes on my labtop