-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send a message from a device to the hub #29
Comments
Same issue here. Did you find a solution yet? |
All module required variables are listed here: https://github.com/amenzhinsky/iothub/blob/master/common/sas.go#L59 Can you make sure you have everything you need? Not sure, probably something could change over a version. |
@amenzhinsky thanks for responding.
How things look, this library implements only way the second way (device connection string). This however is a problem, because i cannot put the device connection string in a generic deployment matching several devices. Do you have any suggestions? |
Hi! I use this now without providing the connection string. Works like a charm.
|
You're right transports API is a bit confusing, I think we need separate module and device transport interfaces or join them together. |
i'm trying as suggested by @siredmar but still gettin not autorized |
I'm trying to send a message but when it arrives its all jumbled. The internet says that I need to set these values in
Is this possible? |
Also how to set |
Seems like common.Message needs to be modified. |
I was trying to send a message from a device running a module (my go application) to the IoT hub.
On the device I have
iotedge
installed in version1.0.10.1
. At first I tried to build the sample, provided in the readme:Even though this works, it requires me to add the connection string to the environment variables of my container. On a container for a module I have the following environment variables set:
After looking a bit around in the code, I found the function
NewModuleFromEnvironment()
which is reading most of those variables, so I adjusted the code and tried to run it:My application always exits with:
And I'm unable to tell what part is missing. Other packages can send messages quite fine when only the selected settings are provided. Any idea how I can send a message from a Go module without providing the connection string to each and every module?
The text was updated successfully, but these errors were encountered: