Replies: 1 comment
-
Hey @wspirin ! moving this to discussions. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Library/API/IoT binding
nanoFramework.Bluetooth.Hid
Visual Studio version
VS2022 version 17.13.3
.NET nanoFramework extension version
2022.12.1.36
Target name(s)
ESP32_BLE_REV3
Firmware version
1.12.4.38
Device capabilities
WiFi + BT
Description
I have a problem trying to create BLE Keyboard. I've looked for solutions and as far as I know from other issues this bug has been fixed long time ago. I simply copied the code from nanoFramework.Bluetooth.Hid example. Application throw an exception right after Debug.WriteLine("Lunched..").
++++ Exception System.OutOfMemoryException - CLR_E_OUT_OF_MEMORY (1) ++++
++++ Message:
++++ nanoFramework.Device.Bluetooth.GenericAttributeProfile.GattLocalCharacteristic::.ctor [IP: 000a] ++++
++++ nanoFramework.Device.Bluetooth.GenericAttributeProfile.GattLocalService::CreateCharacteristic [IP: 0005] ++++
++++ nanoFramework.Bluetooth.Hid.Services.BatteryService::CreateBatteryLevelCharacteristic [IP: 0017] ++++
++++ nanoFramework.Bluetooth.Hid.Services.BatteryService::Initialize [IP: 000c] ++++
++++ nanoFramework.Bluetooth.Hid.Devices.HidDevice::Initialize [IP: 001c] ++++
How to reproduce
using System;
using System.Threading;
using System.Diagnostics;
using nanoFramework.Bluetooth.Hid.Devices;
using nanoFramework.Bluetooth.Hid;
namespace ClapRemote
{
public class Program
{
private static int _soundPin = 4;
private static Keyboard _keyboard;
}
Expected behaviour
No response
Screenshots
No response
Sample project or code
No response
Aditional information
No response
Beta Was this translation helpful? Give feedback.
All reactions