Bluetooth Low Energy: Issues using WinRT API - windows-runtime

I want to read characteristics from a service using WinRT API for BLE. Ihad some working code, but in my last question (Bluetooth low energy characteristic access only works once) i was told my API was too old and wont work on every PC. My issues now are:
I can't get the sample code working. Research on this issue didn't give me answers, so I'm asking here. In the image you can see part of the code and some error messages.
The code doesn't seem to read characteristics, but I'm really unsure how to read them with this new API.
You can take a look at the code here: https://github.com/urish/win-ble-cpp/blob/master/BLEScanner/BLEScanner.cpp
Im using Visual Studio 2019 and i have installed UWP, WinRP C++, and everything else I think I need.
Thanks in advance

Related

Need a way to get symbolicated crash from organiser for a game ported to ios using robovm framework

I'm quite new and inexperienced with robovm framework and to be honest struggling a lot. I've ported few games for ios. The current problem I'm facing is crashes. I am able to get crash reports from organiser but then those crashes show all memory address, not sure what those are. Can anybody guide me to unsymbolicate them. Also I tried flurry crashlytics but the test crash I tried yesterday is still not reported on flurry console. Firebase crashlytics, was lost in trying to implement it! Would be thankful if i get some kind of sample project or guidelines to figure this out.
You need to understand that on iOS, there is a huge difference between crashes on native iOS code and Java code. Crashes on the Objective C side are typically caused by some native code you are calling. Java crashes on the contrary will cause your game to get stuck. Try it by causing a NullPointerException in a debugging session.
For the Objective C crashes, you need to retrieve the crashes within xcode as you already found out. Follow the iOS guides.
For Java crashes, you need your own way to handle this on iOS. You should use Java's DefaultCrashHandler.

Telerik KendoUI Mvc SSRS Slow

So I recently installed Telerik UI for ASP.NET MVC and it seems to have totally bodged my SSDT/SSRS projects in visual studio. The projects work but can take upwards of 20-30 seconds to save making them basically unusable.
Originally we thought this issue may have been have been something to do with ReSharper however having contacted their support and done some captures they said that it looked like Telerik was the culprit.
Extract from the capture trace here...
Having uninstalled Telerik completely low and behold my save speeds go back to normal (less than a second).
Now full disclaimer - we are not using the most up to date version of Telerik (it's a slightly older version 2018.2.620) as this is the version we are licensed for which I would like to think wouldn't make a difference but putting it here just in case!
Has anyone else experienced this issue with SSRS projects? It's strange as, as far as I can tell, there is nothing in the project that should be referencing any MVC/Telerik code.
We have tried this on multiple machines and all seem to suffering the same problem although looking at Google I can't find anyone else reporting the same issue... Annoyingly I can't post of the telerik forums directly as they only let you do that if you have an active account...
If anyone can assist I would really appreciate it!

cannot find member on object of runtimetype

I am currently working on a legacy web app which uses newtonsoft.json.dll version 1.3.0 and vb.net.
I added four new fields in the application. This source code is shared by another application and it posts into my application and it breaks it.
See image for error.
[]
The error is:
Could not find member x on object of type runtimetype.
The stacktrace breaks at:
newtonsoft.json.jsonserializer.setobjectmember(jsonreader reader,object target, type targettype, string membername)
I did some research. The folks reportedly solved such an issue by upgrading DLL version and didn't have a direct solution to fixing it via code change. I know its very old and the application is high impact any upgrade has huge ripple. However they are planning a rewrite of the application.
Can someone please share any ideas that i should pursue in order to solve this?.
I am expected to make it quick and under pressure.
https://smugmugc3.codeplex.com/workitem/10024
My problem is very similar to what is described in the link above.
I am going to upgrade my version of json converter after convincing my boss and I see that is the only way out of this problem.
After which I will update this thread if I find issues.

Implement Realtime Barcode Scanner on Windows Phone 8.1 Runtime using ZXing and MFT

I'm working on a Windows Phone 8.1 Runtime shopping application which needs barcode scanner feature. I'm using the ZXing lib, which is fine. My problem isn't about decoding the picture, ZXing does a great job, but to get the Camera Preview realtime, and feed it to ZXing. After a little research I found this forum https://web.archive.org/web/20150328233747/http://developer.nokia.com/community/discussion/showthread.php/247707-Windows-Phone-8-1-Windows-Media-Capture-API-and-Preview-Frames. Can someone give me a working sample of combining an MFT and ZXing? Or how can I get the preview and handle it in my C# code?
My project is close to the deadline, so please help me out!
Right now the barcode scanning is really messy, I have a "Scan" UI button, which calls the MediaCapture.CapturePhotoToStreamAsync method, but that's not a good solution. I need realtime, automatic scanning.
Thank you!
I finally found a solution. I Microsoft engineer, Matthieu Maitre, hacked together something very useful. The main purpose of his project was "Apply image effects from the Nokia Imaging SDK and DirectX HLSL pixel shaders to videos in Universal Store Apps..". He had an "effect" called "QrCodeDetector", which I tried out and worked, but was really slow. So I asked him if he could enhance the effect, and in two days he updated the nuget package, and it works, and it is lightning fast now: https://github.com/mmaitre314/VideoEffect#realtime-video-analysis-and-qr-code-detection

jQMobi documentation mirror

Just got started and running with jqMobi, which is now called 'intel's application framework' (cheesy name eh)
Along with intel's porting to their new site, they forgot to put the full docs online (at least I can't find it). Now there's only minimal documentation, like the getting started. I'd like to get on with it.
Anyone knows where the (full) docs are hosted? I really hate to go look for another framework again.
The documentation is all there. The only thing they did not add was the "testdrive", which is just the kitchen sink sample found in github
In my opinion the docs are somewhat scattered, but there's some helpful stuff if you can find it. I keep bookmarks for these links. There are some links from those that get you to more stuff.
http://html5dev-software.intel.com/documentation/jqmobiapis/index.html
http://app-framework-software.intel.com/documentation.php?r=9057
http://developer.html5dev-software.intel.com/
http://www.html5dev-software.intel.com/documentation/
Actually they split off where appMobi is a cloud services company to support apps, and Intel took the part to build the apps. So you may still need/want appMobi. Their docs are on their site of course. There is still some duplication on the appMobi site.
Technically I don't think jqMobi is the same thing as the Intel App Framework, but at the same time I have a hard time understanding what's called what anymore. I'm sure they'll clear this up over time. I hope they find names that can be useful tags on stackoverflow.com!