Custom DPS Enrollment payload on IoT Edge - azure-iot-edge

We are using IoT Edge with DPS and we would need to provide additional information at provisioning time to provision the device in the correct IoT Hub and with specific twin information. We noticed DPS offers a solution for this where we can pass a json payload then surfaced in the custom allocation function. However, all documentation point to implementation using the DPS provisioning SDK.
Similar questions where left without satisfying answers :(.
Is there a way to provide this additional information for DPS event? For example in the config.yaml?
Best regards & thanks for the help!
Mik

IoT Edge isn't currently supporting a custom payload that can be passed to DPS. Suggest that a new feedback request is added here: https://feedback.azure.com/forums/907045-azure-iot-edge

Related

Access device connection string in IoT Edge module via Device Provisioning Services

We're moving our Azure IoT Edge devices from manual provisioning to DPS with symmetric key. One of the modules deployed to our devices needs to manage the Device Twin - we have been using this for state properties that persist across updates to modules. To connect to the device twin, I've been creating a DeviceClient from connection string which is loaded as an environment variable on a per device basis. This is using the C SDK.
Now I want to request the device credentials during provisioning so that the symmetric key is the only secret pre installed on the device.
A number of posts suggest that this isn't possible with best practices, most succinctly:
Access IoT Edge Device Twin from Edge Module when using X.509 Authentication
Is this still the case? If so, what is the intended use for the device twin on IoT Edge, if user modules aren't supposed to access it in a production setting?
A number of posts suggest that this isn't possible with best practices, most succinctly: Access IoT Edge Device Twin from Edge Module when using X.509 Authentication. Is this still the case?
This is still the case. Modules accessing device twin information is not supported or recommended. There are other ways to achieve what is desired - like one you described in your comment.
what is the intended use for the device twin on IoT Edge, if user modules aren't supposed to access it in a production setting?
The use case for device twins in IoT Edge is ADM deployments.
You create a deployment manifest and then define which devices it applies to based on tags in the device twin.
Ref: Understand IoT Edge automatic deployments for single devices or at scale

Google IOT device on webhooks & post

Is there any way to create your own google IOT device based on webhooks and POST-request? Without using firebase, IFTT, node.js
Samples that Google are very poor, they don`t show all steps of creating your own app, they just showing how to deploy "their sample"
I tried to make action with dialogflow & webhook, it was pretty simple. Just processed JSON in POST request to Azure function.
But when I try to create IOT device, its ask me for fulfilment url and it does not even tries to reach that address. I read about action.device.sync, action.device.execute, it just does not communicate with the specified address, giving simulator some voice command doesn`t affect at all. Are there any ways to create IOT device to work with POST-requests & web-hooks?
The answer is it depends.
There are many different ways to do server-device communication: web sockets, local servers, hub/local control, polling, MQTT, and likely many others. All of these solutions have trade-offs, and work in particular circumstances. Depending on exactly what IoT device you want to build, its requirements and technical specs, and what cloud providers you are using, you may identify what works best.
If you run the sample, you'll see it is sending JSON requests to a server and expect JSON responses back. This is must like Dialogflow & a webhook. In this case, the smart home platform communicates solely with the server.
Your server can then communicate with the device in any way that you want. I'm not too familiar with Azure offerings. It might have an MQTT service as well, or some other sort of push notification service you might be able to use.
If you're seeing simulator issues, you may need to make sure your authentication is set up correctly, and you'll need to first complete account linking on your phone before you can use the simulator.

how to send data from airwatch to ios app

I'm a junior ios developper trying to communicate with the MDM server : air watch.
I found lot of topics talking about getting the data from the MDM server in my app (like Using MDM To Configure An Enterprise App Via NSUserDefaults and https://www.devexpress.com/Support/Center/Question/Details/T224565) but I cannot find any tutorials on how air watch send data to ios app.
Does anybody face the same problem or have links to help me get through ?
Thanks in advance !
This will work: AppConfig
Implementation in iOS is much simpler than Android
I am not sure what data you want to send down to the app, but syncing application data is usually not the domain of an MDM/EMM solution. I would use either use Apple APNS to publish to the app (directly or through a 3rd party provider) or use periodic polling initiated from your app to fetch you data. A common pattern is to publish a small payload to the app (e.g key-oriented data) and then let it fetch the real application payload using the Apple networking stack
If you use APNS and your enterprise is averse to opening your network to the internet (very common), consider a 3rd party provider like UrbanAirship, Azure,... They handle the initial token handshake as well as provide nice group messaging and other features. Good luck.

Intercept gsm data in ios

I want to do some treatment of the gsm data in ios before it sent. i know that i have to use private APi and in my case its not a problem, my app is experimental and will not be sent to the AppStor.
i dont know from where to begin.
I think that i will have those problems:
Install/use private framework on xcode.
No official documentation for that APIs, but i think with Cydia, many people use them.
Have you some tutorial or link that can help me to start?
I think it would be good idea to divide this question on two subquestions:
1) How to use private API
You can check following questions for info on this subject:
How to use iPhone SDK Private APIs
http://aralbalkan.com/2106
iOS Private API Documentation
Getting signatures of private API methods for iOS
If you will have any additional questions on. You can post it here or send me an email (I have it in my profile).
2) How to intercept gsm data using private api?
I don't know.
Three question for youL
Did you really mean "gsm" data (gsm protocol level information) or did you mean wireless data (let say HTTP requests which are send from device)?
Do you need to intercept and modify or do you need just intercept and view them?
If you meant wireless data and just viewing it then try to search for traffic sniffers. Some of them should work on iOS.
One more note. As soon as I hear "intercept" my guess would be that you will be better off with jailbreak tweak (vs private API). Private API's are limited in usage. Is this ok, if your app will work only on jailbroken devices?

Blackberry push notification tutorial

I have registered with RIM for the push notification evaluation. But i cant find good sources for implementing push notifications. There are some samples in the sdk but i couldnt find out a way to implement them. So, i am looking for a good tutorial where i could find step by step implementation of push notification services...
RIM's samples for the server side involve setting up a web application container (e.g. Tomcat), setting up a backend database, and then building their Spring-based application. This sample web app handles things like device registration, content subscription, etc. and features a portal to manage everything.
The bare minimum that is required, though, is to send a WAP Push message which is just an HTTP POST to their Push Service servers. Here is a thread from the BlackBerry Support Forums that describes how to use their low-level PAP API to construct this message. Pay attention in particular to the messages by the user mdicesare.
There's also another SO question that has some tips.

Resources