This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

header and lib files of MasterEmulator - Visual C++ BLE app

I am developing a Windows7 Visual C++ application to interface via Master Emulator to BLE device. Where can I find the C/C++ header and lib files? (I am new to Nordic BLE) Thanks!

  • This isn't something that we have tested or that is officially supported, so I'd recommend you to instead use C#, as our example applications do.

    It might be possible to get working by creating your own C# wrapper object, that you can use from your C++ application, but again, this isn't something I've tested or that we are even sure would actually be possible. If you absolutely need to use C++, it could perhaps be an option worth investigating.

  • Hi Ole, Thank you for your response. But the Master Emulator API documentation mentions: "..It is built on the Microsoft .NET framework and can be called from any .NET compatible language."

    And it gives code syntax for Visual C++ also:- public: BtDevice( BtDeviceAddress^ address, IDictionary<DeviceInfoType, String^>^ deviceInfo )

    Is the Master Emulator DLL developed in C# ? Can we not import the DLL in Visual C++?

    Our first preference is to develop the client in Visual C++, but if it is too much work/uncertainity in support, then we will develop in C#.

    Regards, An

  • The DLL is developed in C#, as are all the example applications, so if possible, I'd strongly recommend you to use this language also for your application.

    I'm aware that the documentation shows how to call the functions from C++, but as I said, this hasn't been tested by us.

Related