- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dev kit 3.5.2
Note I'm NOT using the AWS IoT (I have that working fine)
I can connect to HiveMQ broker fine (iot.eclipse.org) using the unsecured example.
When using the snip.secure_mqtt example (modified with host lookup: if (wiced_hostname_lookup( MQTT_BROKER, &broker_address, 30000 ) != WICED_SUCCESS)
it hangs trying to connect.
I am using the supplied certificate in the example.
Is there something I'm missing in my setup?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
jmartin wrote:
Dev kit 3.5.2
Note I'm NOT using the AWS IoT (I have that working fine)
I can connect to HiveMQ broker fine (iot.eclipse.org) using the unsecured example.
When using the snip.secure_mqtt example (modified with host lookup: if (wiced_hostname_lookup( MQTT_BROKER, &broker_address, 30000 ) != WICED_SUCCESS)
it hangs trying to connect.
I am using the supplied certificate in the example.
Is there something I'm missing in my setup?
You need to use the certificate from http://iot.eclipse.org/iot.eclipse.org.crt
And also make sure using encrypted port 8883.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It still hangs when trying to open the connection.
Also if the certificate was a problem shouldn't the call to open return a certificate error rather than hanging?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
can you point to which secure iot.eclipse.org you are referring to ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
#define MQTT_BROKER "iot.eclipse.org"
if (wiced_hostname_lookup( MQTT_BROKER, &broker_address, 30000 ) != WICED_SUCCESS)
{
WPRINT_APP_INFO(("broker lookup failed\n"));
}
else
{
WPRINT_APP_INFO(("[MQTT] Connecting to broker %u.%u.%u.%u ...\n", (uint8_t)(GET_IPV4_ADDRESS(broker_address) >> 24),
(uint8_t)(GET_IPV4_ADDRESS(broker_address) >> 16),
(uint8_t)(GET_IPV4_ADDRESS(broker_address) >> 8),
(uint8_t)(GET_IPV4_ADDRESS(broker_address) >> 0)));
}
Which gives
Connecting to broker 198.41.30.241 ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes thats correct, I meant where in eclipse IoT you are referring to their secured connection ? Can you point me to a link where they describe their secure connection to their broker?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, axel.lin pointed me to the cert. I don’t know how he found it. (see earlier post)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Whats the use case you are trying ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The secure_mqtt project in sdk 3.5.2