You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am pretty new to IOT development and VERY new to C development, so this may be an ignorant question. I am trying to create a very basic C based IOT module to give a co-worker as a sample/POC. I ma trying to create the solution in VS Code because that is what they use but i typically use Visual Studio for my c# development.
To reduce complexity and help debugging, I am using docker to pull and run the images on a raspberry pi (taking azure module deployment out of the picture). Once i did that, i am getting messages about Environment Variables not specified (no idea how there is a beginner tutorial that doesn't say anything about needing ENV variables). It looks like the following line is trying to get the ENV values (but i am VERY new to C so maybe not):
else if ((iotHubModuleClientHandle = IoTHubModuleClient_LL_CreateFromEnvironment (MQTT_Protocol)) == NULL)
in the IoTHubModuleClient_LL_CreateFromEnvironment method call.
From googling and the error messages, I think these are the values I need:
IOTEDGE_MODULEID - from azure
IOTEDGE_DEVICEID - from azure
IOTEDGE_IOTHUBHOSTNAME - from azure IOTEDGE_MODULEGENERATIONID - no idea
IOTEDGE_GATEWAYHOSTNAME - hostname of host IOTEDGE_APIVERSION - not sure what this should be
IOTEDGE_WORKLOADURI - no idea
I have 2 questions:
Is this the correct list of required ENV variables?
Where do i get these values, specifically: IOTEDGE_MODULEGENERATIONID, IOTEDGE_APIVERSION, IOTEDGE_WORKLOADURI
Thank you for your assistance.
The text was updated successfully, but these errors were encountered:
I am pretty new to IOT development and VERY new to C development, so this may be an ignorant question. I am trying to create a very basic C based IOT module to give a co-worker as a sample/POC. I ma trying to create the solution in VS Code because that is what they use but i typically use Visual Studio for my c# development.
I followed the instructions here.
To reduce complexity and help debugging, I am using docker to pull and run the images on a raspberry pi (taking azure module deployment out of the picture). Once i did that, i am getting messages about Environment Variables not specified (no idea how there is a beginner tutorial that doesn't say anything about needing ENV variables). It looks like the following line is trying to get the ENV values (but i am VERY new to C so maybe not):
else if ((iotHubModuleClientHandle = IoTHubModuleClient_LL_CreateFromEnvironment (MQTT_Protocol)) == NULL)
in the IoTHubModuleClient_LL_CreateFromEnvironment method call.
From googling and the error messages, I think these are the values I need:
IOTEDGE_MODULEID - from azure
IOTEDGE_DEVICEID - from azure
IOTEDGE_IOTHUBHOSTNAME - from azure
IOTEDGE_MODULEGENERATIONID - no idea
IOTEDGE_GATEWAYHOSTNAME - hostname of host
IOTEDGE_APIVERSION - not sure what this should be
IOTEDGE_WORKLOADURI - no idea
I have 2 questions:
Thank you for your assistance.
The text was updated successfully, but these errors were encountered: