We're talking about BLE. Right now Im using the Plugin.BLE library and it's working quite fine. Now Im in the need of using the LE Secure Connection (with the "just works" method) in order to send/receive encrypted data.
I've read lots of documentation about how the protocol works, but have no idea of how actually implementing it in Xamarin and wasn't able to find anything on this.
With the Plugin.BLE one can take advantage of a very simple APIs to connect to a Device.
Is there any library that provides similar simplicity and enabling an LE Secure Connection?
If not, how can I connect in Android & iOS to a BLE device using a secure channel?
Thank you very much
The pairing is handled by the Bluetooth stack and not by the application, so you can't affect this in any way. However, from Marshmallow and onward, BLE pairing will use Secure Connections as long as the second device supports it. Not sure about iOS.
Related
I want to make an application to get my notifications from an iphone through psoc 4 ble. I'm subscribing to ANCS service, i get the notifications, and after i want that data to send to windows to a java or c# application. What I don't know how to do or if it's possible: how do I make the connection between psoc and windows to send the data.
It calls Serial Communication (UART). You will have two pins Tx and Rx and using them you can easily communicate with windows using terminal applications such as PUTTY
Does your computer have bluetooth on it directly? If so you can use the microsoft API to call it here: https://msdn.microsoft.com/en-us/library/aa916530.aspx
else if your computer does not have bleutooth, you have to use the CySmart dongle and use the C# API cypress provides here: CySmart
There's a way from Codename One to provide access to Near Field Communication (NFC) ?
Anything new, out this post codename-one-nfc-beacon?
NFC is an Android only API and even there the availability in devices is "problematic". In iOS it's restricted to payment so there is no access to the underlying hardware. So there is no point in supporting the API in a framework that is designed for cross platform. I'm sure you can create a cn1lib similar to the fingerprint reader API or the SMS intercept API.
Hi I want to create an app using google nearby message api. I want it to be completely offline.
Is it possible? Does google needs internet connection for using this Nearby api?
I know it uses bluetooth and WIFI things to share the data!
I want to know whether it needs internet connection at its initial stage? since it needs to retrieve some token from the cloud.
Help me in this!
Thanks in advance!
Yes, Nearby Messages requires devices to have internet access. Discovery is accomplished via BLE (Bluetooth Low Energy), WiFi, and audio (using near-ultrasonic frequencies), but the cloud is needed for message delivery after discovery. Nearby doesn't yet provide a pure peer-to-peer solution.
I'm working on a Chromecast custom receiver that shows private information on the TV. After building a prototype, we realized the client (web, phone, whatever) could connect to a rogue device acting as a Chromecast and intercept anything intended to be sent to our receiver. Is there a way to mitigate this kind of attack? Is there anything built into the platform we can use to get a secure connection between the client and the Chromecast?
First, the connection is secure (as long as it is done by Cast SDK) and secondly, cast SDK checks and validates that it is talking to a genuine Cast device.
I'm in the process of porting an application to the Windows Phone platform. I spent quite a while reading MSDN documentation and I can'd find nothing on the subject.
Is it possible to create server sockets on Windows Phone? All I've found is related with client side, like creating connections to remote machines. I can't find nothing the other way: The phone acting as the server.
Some essential methods like Bind and Listen are not exposed by the Socket class included in the Windows Phone 7.1 SDK.
This was kind of a surprise to me.
Any help or confirmation on this will be truly appreciated!
Thanks in advance!
You cannot open a socket for listening from a Windows Phone 7 application. This is due primarily to the complexities of the cellular data networks, such as the use of transparent proxies, shared IP addresses, and frequent connection disruptions.
Until windows phone 8 you will not be able to listen on sockets, you have to use an intermediary service to listen/send between two or more phones.
Check this link, on windows phone 8, there is new API introduced for streamlistner
We are also trying at our end, should be possible
Class is StreamSocketListener
http://msdn.microsoft.com/en-us/library/windowsphone/develop/windows.networking.sockets.streamsocketlistener.aspx
I dont know about a "server" but it has UDP functionality and can send data through it and send/receive with TCP.
also, i have found the SDK to lack some APIs to interface with the phone. ex no Bluetooth or not being able to switch between internal and headphones for sound through developer programming.