Skip to content

Commit

Permalink
Update 7.2.1-hivemq-openssl-certificate.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
sgbaird committed Jun 13, 2024
1 parent 5f1d72d commit c07b945
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions notebooks/7.2.1-hivemq-openssl-certificate.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
"colab_type": "text",
"id": "view-in-github"
},
"source": [
"<a href=\"https://colab.research.google.com/github/sparks-baird/self-driving-lab-demo/blob/main/notebooks/7.2.1-hivemq-openssl-certificate.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
Expand All @@ -22,6 +22,13 @@
"- https://github.com/sparks-baird/self-driving-lab-demo/blob/main/src/public_mqtt_sdl_demo/main.py"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**NOTE:** Unless you are using the public test credentials for testing purposes, you will need to replace `host` with your own hostname, since certificates are not transferrable for different brokers. On HiveMQ Cloud, these used to be transferrable, but no longer are. See [this community.hivemq.com post](https://community.hivemq.com/t/getting-started-raspberry-pi-pico-w/1316/30?u=sgbaird) for details."
]
},
{
"cell_type": "code",
"execution_count": 11,
Expand All @@ -31,7 +38,6 @@
"outputs": [],
"source": [
"# dummy host name: \"1234abc5678def91011ghi1213.s2.eu.hivemq.cloud\"\n",
"# NOTE: Replace this with your own hostname (certificates are not transferrable for different brokers)\n",
"host = \"248cc294c37642359297f75b7b023374.s2.eu.hivemq.cloud\" #@param {type:\"string\"}\n",
"port = 8883 #@param {type:\"integer\"}"
]
Expand All @@ -51,16 +57,16 @@
"cell_type": "code",
"execution_count": 13,
"metadata": {
"id": "w5xKUcWssZ_W",
"outputId": "9921a449-9d45-4731-9b3b-ff743dffedc3",
"colab": {
"base_uri": "https://localhost:8080/"
}
},
"id": "w5xKUcWssZ_W",
"outputId": "9921a449-9d45-4731-9b3b-ff743dffedc3"
},
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"output_type": "stream",
"text": [
"CONNECTED(00000003)\n",
"---\n",
Expand Down Expand Up @@ -178,16 +184,16 @@
"cell_type": "code",
"execution_count": 14,
"metadata": {
"id": "c3a0_l6qtwZc",
"outputId": "a99195eb-b425-4279-ac2d-6861bde920f1",
"colab": {
"base_uri": "https://localhost:8080/"
}
},
"id": "c3a0_l6qtwZc",
"outputId": "a99195eb-b425-4279-ac2d-6861bde920f1"
},
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"output_type": "stream",
"text": [
"-----BEGIN CERTIFICATE-----\n",
"MIIFBjCCAu6gAwIBAgIRAIp9PhPWLzDvI4a9KQdrNPgwDQYJKoZIhvcNAQELBQAw\n",
Expand Down Expand Up @@ -271,8 +277,8 @@
],
"metadata": {
"colab": {
"provenance": [],
"include_colab_link": true
"include_colab_link": true,
"provenance": []
},
"kernelspec": {
"display_name": "Python 3",
Expand Down

0 comments on commit c07b945

Please sign in to comment.