Programmatically declare a parent-child relationship between the devices in IoT Hub using Node SDK - iot

Using the Node SDK, I have programmatically created devices in IoT Hub. I wish to know if the Node SDK provides me the capability to set a device as a child of another device.
Looking at the documentation, I didn't find a way (using SDK). Is there any other way to achieve the same ?

As far as I can see and as you found, the SDK doesn't let you create parent/child relationships for devices (https://learn.microsoft.com/javascript/api/azure-iothub/devicescreateorupdateidentityoptionalparams?view=azure-node-latest).
However, the REST API does support this using the deviceScope parameter (https://learn.microsoft.com/en-us/rest/api/iothub/service/devices/create-or-update-identity).
You might find more information here: How to programmatically set a parent device while creating an Azure IoT Hub device?

Related

Yubico SDK and FIDO Device

I'm writing a client application using yubico.Yubikey SDK in .Net. I'm trying to write a code which can fetch "FEITIAN" USB FIDO device connected to my laptop. Though Yubico and FEITIAN are two different companies, Still it shoul support protocol for FIDO standard.
Till now, I have tried following two methods, but both failed to get FEIIAN device.
IYubiKeyDevice yubiKeyDevice = YubiKeyDevice.FindByTransport(Transport.All).First();
var yubikeys = YubiKeyDevice.FindAll();
Please let me know if there's any another way.
Pretty sure the .NET SDK is hard coded to only find devices with the Yubico brand device identifier. The SDK is open source and can be found here: https://github.com/Yubico/Yubico.NET.SDK.

How to detect connected devices on same network including Smart TV [Swift iOS]

I am creating an iOS Application in which I have to show a list of all connected devices on the same network and connect to Android TV. The application's purpose is to create a Remote for Android Tv.
I have used MMLanScan to fetch a list of all connected devices it is returning only IP Addresses but hostnames are nill. Also It's not providing any info to connect with these devices.
I actually want to get a complete idea of how this working will be done in Swift similar to this app
Have somebody worked using this library or any similar one? Any help will be appreciated.

How can i create an app for Samsung smart tv Remote in iOS programming?

I need to create a remote control app in ios for samsung tvs. I did google too but i can not able to get exact solution. I have seen this SDK link
https://developer.samsung.com/tv/develop/extension-libraries/smart-view-sdk/sender-apps/ios-sender-app
But is it still allowing me to connect latest tv models also ?
I have seen codes provided in github but none of them are working for me.
https://github.com/SamsungDForum/SmartViewSDKIntegrateSample
I have also seen that there is TIZEN platform to do it but i am not aware with that also.
I am still confused that is its control code need to write in swift or objective c or it will be done via web APIS? because i have seen node.js reference as well for this.
https://github.com/Toxblh/samsung-tv-control
https://github.com/piu130/samsung-tv-remote-interface
https://github.com/piu130/samsung-tv-remote-interface-keys
I have seen smartthings link too but it also not giving me any hint from which i can start.
https://smartthings.github.io/
However i have seen there are many apps available to operate samsung tvs. I wonder how they did the connection and operate the remote keys ?
I have seen http://connectsdk.com/. And this is available in objective c and working for LG tv. I have tried and tested in lg tv but it is not working in samsung tv.
Thank you.
You can create a samsung remote easily using websockets. Take a look at this project.
https://github.com/Ape/samsungctl
The code is in python and it contains two methods.
Websockets
Legacy
I prefer to use websockets and it is actually quite easy. By looking at the websockets section in this project you will get an idea of how to use websockets to connect to samsung TV and control it by sending commands.
You can create a Samsung remote easily using WebSockets.
It's Quite Easy to work with this Library, Only need some basic knowledge about Socket.
https://github.com/daltoniam/Starscream
without needing any Server Side Support.

Using the ImageCaptureCore framework on iOS

I'm using the ImageCaptureCore framework to control a DSLR camera connected via USB in a Cocoa application. Now I'd like to do the same on iOS (camera connected to an iPad via a "Lightning to USB Camera Adapter") and wondered which framework to use.
I'm not going to submit the App to the AppStore, so using a private framework is totally fine.
I searched for appropriate headers in iOS-Runtime-Headers, but only found ImageCapture. Any hint in the right direction is most welcome.
As of iOS 13.0+, the ImageCaptureCore framework is available for use on iPadOS to
Discover connected cameras and scanners
View and modify the folders, files, and metadata on a connected camera
Take photos directly on a connected camera using tethered capture
Perform overview scans and scans on a connected scanner
Since there is no framework like ImageCaptureCore on the iOS platform available there are three options I think:
As stated in this question there may be the chance of talking to the device on low level. I don't know if there are any frameworks or standards that work for cameras or taking photos with cameras.
Depending on the camera you want to trigger there also might be the way of connecting your iPhone to the camera via cable to the trigger port of the DSLR. Specifications for the different manufacturer's specifications can be found here.
However I think you don't want just to trigger the camera but to transfer the taken images.
You could use a SD Card with an integrated access-point to connect to and copy the image via a high level protocol.

AirDrop to implement for a app for detection

Is there any documentation for AirDrop? I want to make an app that can be installed on multiple devices, and to be able to detect other devices that are running that app, I was thinking about AirDrop to do this part of detection. I would not want to use other solutions like bonjour.
Thank you!
I recommend the Multipeer Connectivity Framework Reference
This framework allows peer-to-peer connections (similar to AirDrop) between an app installed on multiple devices and for data to be exchanged between them over the connection.
You can find examples on how to use the AirDrop API by searching for 'airdrop' in iOS Developer Library. Here is a link https://developer.apple.com/library/ios/samplecode/sc2273/Introduction/Intro.html

Resources