Skip to content
Snippets Groups Projects
Commit 8fcdc081 authored by Runyu Ma's avatar Runyu Ma
Browse files

Update week15

parent c04502dd
Branches
No related tags found
No related merge requests found
Pipeline #479045 passed
......@@ -215,7 +215,7 @@
<div class="code-container">
<pre>
<code>
brew service start mosquitto
brew services start mosquitto
</code>
</pre>
<button class="copy-btn" onclick="copyCode()">Copy</button>
......@@ -426,7 +426,25 @@ To open the “.config file” with your text editor, execute the following comm
</script>
<p1> And use following command to kill the running processes, then restart the mosquitto based on the config file.The whole process is in following picture</p1>
<img src="../../images/Week15/howToSetUp.png" alt="Description of image" width="800" />
<p1> Last, run command as below to start mosquitto</p1>
<div class="code-container">
<pre>
<code>
mosquitto -c /opt/homebrew/etc/mosquitto/mosquitto.conf
</code>
</pre>
<button class="copy-btn" onclick="copyCode()">Copy</button>
</div>
<script>
function copyCode() {
var code = document.querySelector('code').innerText;
navigator.clipboard.writeText(code).then(() => {
alert('Code copied to clipboard!');
}, () => {
alert('Failed to copy code.');
});
}
</script>
<h3>Part4. Programming Code for WebPage </h3>
<p1>4.1 Then I created a web page to interact with an MQTT broker to control an LED.</p1>
<p1> - In the "head" section, it imports the Paho MQTT JavaScript library from a CDN for me.</p1>
......
public/images/Week07/07.jpg

228 KiB

public/images/Week07/08.jpg

261 KiB

public/images/Week07/10.jpg

187 KiB

public/images/Week07/speed.png

1.4 MiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment