Esempio n. 1
0
 /// <summary>
 /// Creates the Bluetooth GATT server.
 /// </summary>
 /// <returns>The BluetoothGattServer instance.</returns>
 /// <exception cref="NotSupportedException">Thrown when the BT/BTLE is not supported.</exception>
 /// <exception cref="InvalidOperationException">Thrown when the create GATT server fails.</exception>
 /// <since_tizen> 3 </since_tizen>
 public static BluetoothGattServer CreateServer()
 {
     if (_instance == null)
     {
         BluetoothGattServer server = new BluetoothGattServer();
         if (server.IsValid())
         {
             _instance = server;
         }
     }
     return(_instance);
 }