Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Ciao raga, sto cercando di realizzare un codice, che mi rilevi i dispositivi Bluetooth, presenti nelle vicinanze.
Ho fatto delle ricerche in google, è ho isolato la libreria:
"InTheHand.net" di 32feet.net
Ho cercato di buttare giù un codice, ma non funziona;
Eccone uno stralcio:
Codice sorgente - presumibilmente C++
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using InTheHand.Net.Sockets;
namespace ScanBlu
{
public partial class Setting_p11 : UserControl
{
public Setting_p11()
{
int Trovati;
BluetoothClient bc;
BluetoothDeviceInfo[] array;
string[] Dispositivi=new string[99];
InitializeComponent();
bc =new BluetoothClient();
array = bc.DiscoverDevices();
Trovati = array.Length;
for(int i =0; i < Trovati; i++)
{
Dispositivi[i]=array[i].DeviceName;
}
}
}
}
Chi mi sa dare qualche aiuto?
Ultima modifica effettuata da uelfox il 18/09/2010 alle 9:11