derekgn / winrtble Goto Github PK
View Code? Open in Web Editor NEWAn example C++/WinRt console application for interacting with BLE devices
License: MIT License
An example C++/WinRt console application for interacting with BLE devices
License: MIT License
trying to compile with VS2017 on Win10 and get error that NuGet package cppwinrt version 2017.8.25.1 is missing. I cannot uninstall or reinstall a newer version.
Apparently version 2017.8.25.1 does not exist because nuget.org cannot find it. Also apparently without it I cannot uninstall in order to reinstall a more current version. Do you have a copy of the cppwinrt nuget package that you are referencing or do you know how to get rid of the reference in the ,sin? I have deleted the packages.config file but then it complains that the reference is missing.
I edited out all mentions of cppwinrt in the vcxproj file. There were no mentions of cppwinrt in the .sin file. I then tried to install the latest version of cppwinrt but got an error that it couldn't find the 2017.8.25.1 version in the source.
I was finally able to fix this by renaming the packages.config file so it would not be found and editing the .vcproj file commenting out any line that contained any mention of cppwinrt. I was then finally able to install the latest version of cppwinrt.
if GattClientCharacteristicConfigurationDescriptorValue is Notify,how can i get the Value of Characteristic?
Console:
BluetoothLEAdvertisementWatcher:
MaxOutOfRangeTimeout: [0x23c34600]
MaxSamplingInterval: [0xf32fdc0]
MinOutOfRangeTimeout: [0x989680]
MinSamplingInterval: [0xf4240]
Waiting for device: AdvertisementReceived:
LocalName: [] AdvertisementType: [ConnectableUndirected] BluetoothAddress: [0x4525dafb5786] RawSignalStrengthInDBm: [-70]
.
Finished waiting for device.
Device found.
Device Information:
BluetoothAddress: [4525dafb5786]
BluetoothAddressType: [Random]
ConnectionStatus: [Disconnected]
DeviceId: [BluetoothLE#BluetoothLEf0:18:98:6e:7a:e4-45:25:da:fb:57:86]
Service - Guid: [00001800-0000-1000-8000-00805f9b34fb]
Characteristic - Guid: [00002a00-0000-1000-8000-00805f9b34fb]
Characteristic Data - Size: [16]
Characteristic Data - [HuntCode
in OpenDevice
std::wcout << "\t\t\tCharacteristic Data - [" << reader.ReadString(readResult.Value().Length()).c_str() << "]" << std::endl;
I have the WinRtBle running with my BLE device and it can write to the txService without problems. I have verified this by writing the command to turn off the device and it does.
So another command is to send a Query to the txService and get a reply back from the rxService. I've been trying to figure out how to create and run the DataReader but I'm going around in circles. Have you, by any chance, ever done that but just haven't put it into this code yet?
Ed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.