From fa249e85cc84328a143720aebf4b76666fb3111a Mon Sep 17 00:00:00 2001 From: Nizar AYED Date: Sun, 8 Jan 2017 07:03:25 +0100 Subject: [PATCH 1/8] Set theme jekyll-theme-modernist --- _config.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 _config.yml diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000000..cc35c1df2c --- /dev/null +++ b/_config.yml @@ -0,0 +1 @@ +theme: jekyll-theme-modernist \ No newline at end of file From 45d990ab264240723ca5dadca32e321b6e7c5980 Mon Sep 17 00:00:00 2001 From: Nizar AYED Date: Fri, 20 Mar 2020 20:47:21 +0100 Subject: [PATCH 2/8] MQTT demo project --- Examples/mqtt-example1-v1.1.xml | 1 + 1 file changed, 1 insertion(+) create mode 100644 Examples/mqtt-example1-v1.1.xml diff --git a/Examples/mqtt-example1-v1.1.xml b/Examples/mqtt-example1-v1.1.xml new file mode 100644 index 0000000000..51328d8f1d --- /dev/null +++ b/Examples/mqtt-example1-v1.1.xml @@ -0,0 +1 @@ +data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAAJ20lEQVR4Xu2dfUxV5x3Hv+e+8Y6AEUFMpSBiHC1GN4uvWGdJdCVZJayadtFVsy00MW7G6Lq4uTSBJaO2FpNFW+PaxcSKbjqjNtVsqFV0VBFJfSuiMo2bTikUrlzuy1nOw+4FlAs847mcXfmef/Tm/u7vOc/nfHie8/zOOfdquq7r4EYCJhHQKKBJ5NmsIEABKYKpBCigqfjZOAWkA6YSoICm4mfjFJAOmEqAApqKn41TQDpgKgEKaCp+Nt6ngLW1taiqqgoJndmzZ2PGjBkhyc2k4UfgCQGPHDmCrKwsGFfoNE0b8N/WC0dw6sNNsFn67/ykCSmYsPaAyHfnzh3Mnz8//Ghxj5UT6CXg2bNnERsbK8Tzb34Rg732vPcSsgteg7tmd+Az9rzXoT9qgafuYK8dblr+aUDoK1euYMmSJco7xIThRaCXgBs3bhRSGAJu27YNmzZtwub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H6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAA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IcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQIHLFxAWmhEwHPAAAAAElFTkSuQmCCarg1arg2arg3
testtestvar mqttScript, done = false; mqttScript = document.createElement('script'), mqttScript.onload = function () { done = true; console.log('MQTT is ready'); }; document.head.appendChild(mqttScript); mqttScript.src = 'https://unpkg.com/mqtt/dist/mqtt.min.js'; return function () {return done; }
brokermoquitto (ws)=ws://test.mosquitto.org:8080/mqtt mosca (ws)=ws://test.mosca.io/ hivemq (ws)=ws://broker.hivemq.com:8000 mosca-localhost (ws)=ws://localhost:3000 codimeo MQTT ={ ws=ws://mqtt.codimeo.com:15675/ws wss=wss://mqtt.codimeo.com:15676/ws }oneventmessagecallbacksubscribetopicunsubscribetopicpublishtopicmessageis_connectedlog_clientlog_parent_spriteendforceoneventsubscribeunsubscribepublishis_connectedlog_clientlog_parent_spriteendmessageand the main body of the class
mqtt-client
End MQTT Client with force True or False. Default : False
mqtt-client
messagetopicmqtt-client
mqtt clienttopic
mqtt-client
jsonreturn JSON.parse(json)"end":"" }
mqtt-clientevent#1#2#3
your comment line here
messageoneventsubscribeunsubscribepublishis_connectedlog_clientlog_parent_spriteendwss://mqtt.codimeo.com:15676/wsnullwss://mqtt.codimeo.com:15676/wsmessagecallbacktopictopictopicmessageforcehello
\ No newline at end of file From bedebfcacb4d47b9ee4d8da018627c4b02c1b84a Mon Sep 17 00:00:00 2001 From: Nizar AYED Date: Fri, 20 Mar 2020 20:48:22 +0100 Subject: [PATCH 3/8] Include demos projects for MQTT library --- Examples/EXAMPLES | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Examples/EXAMPLES b/Examples/EXAMPLES index 70b1ec53df..7a8cb7c7dd 100644 --- a/Examples/EXAMPLES +++ b/Examples/EXAMPLES @@ -8,3 +8,5 @@ live-tree.xml Live Tree swimmer.xml Swimmer tree.xml Tree vee.xml Vee +mqtt-example1-v1.1.xml MQTT Simple Example +mqtt-example2-v1.0.xml MQTT Elaborated Example From 3474639b2efbae915380aa59277a42e4d47fe953 Mon Sep 17 00:00:00 2001 From: Nizar AYED Date: Fri, 20 Mar 2020 20:52:03 +0100 Subject: [PATCH 4/8] Add files via upload --- Examples/mqtt-example2-v1.0.xml | 1 + 1 file changed, 1 insertion(+) create mode 100644 Examples/mqtt-example2-v1.0.xml diff --git a/Examples/mqtt-example2-v1.0.xml b/Examples/mqtt-example2-v1.0.xml new file mode 100644 index 0000000000..33953673bf --- /dev/null +++ b/Examples/mqtt-example2-v1.0.xml @@ -0,0 +1 @@ +data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAAFwklEQVR4Xu3ce2iVZRzA8d9upWUtS2qVZzvuIlpUxjajUloIEcQg0WYX6IKYzoKEnLf+qP6xtdUiA9ekcJElrSH2z2AQzQ276BKToHRbnU0WOVqolDjzcuLVRkXHOOfZc97fe97ne/71PM/v3ff5nDN3dnay4vF4XLhRQKlAFgCVyjP2fAEAAkG1AABV8zMcgBhQLQBA1fwMByAGVAsAUDU/wwGIAdUCAFTNz3AAYkC1AABV8zMcgBhQLQBA1fwMByAGVAsAUDU/wwGIAdUCAFTNz3AAYkC1AABV8zMcgBhQLQBA1fwMByAGVAsAUDU/wwGIAdUCAFTNz3AAYkC1AABV8zMcgBhQLQBA1fwMByAGVAsAUDU/wwGIAdUCAFTNz3AAYkC1AABV8zMcgBhQLQBA1fwMByAGVAsAUDU/wwGIAdUCAFTNz3AAYkC1AABV8zMcgBhQLQBA1fwMByAGVAsAUDU/wwGIAdUCAFTNz3AAYkC1AABV8zMcgBhQLQBA1fwMByAGVAsAUDU/wwH4DwNnzp2R0R3b5Niebjneu1tODg38R0h+xTzJr5wn+VX3yzVz70HQBAsAUESOf71bhrdvkV92vJ9SzksK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QRAOx3ZxbAAAA3DscxOAQDa6cguhgUAaBiOZXYKANBOR3YxLABAw3Ass1MAgHY6sothAQAahmOZnQIAtNORXQwLANAwHMvsFACgnY7sYlgAgIbhWGanAADtdGQXwwIANAzHMjsFAGinI7sYFgCgYTiW2SkAQDsd2cWwAAANw7HMTgEA2unILoYFAGgYjmV2CgDQTkd2MSwAQMNwLLNTAIB2OrKLYQEAGoZjmZ0CALTTkV0MCwDQMBzL7BQAoJ2O7GJYAICG4VhmpwAA7XRkF8MCfwKhKM63DeSS/wAAAABJRU5ErkJggg==data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAAOhUlEQVR4Xu3VwQkAAAjEMN1/abewn7jAQRC64wgQIECAAIF3gX1fNEiAAAECBAiMAHsCAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECg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IBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQIHLFxAWmhEwHPAAAAAElFTkSuQmCCtopicmessagepayloaderrorerrorarg2arg3reconnectarg1arg2arg3offlinearg1arg2arg3Subscribe to the desired topicHelloleftupdowngot message0
testtestvar mqttScript, done = false; mqttScript = document.createElement('script'), mqttScript.onload = function () { done = true; console.log('MQTT is ready'); }; document.head.appendChild(mqttScript); mqttScript.src = 'https://unpkg.com/mqtt/dist/mqtt.min.js'; return function () {return done; }
brokermoquitto (ws)=ws://test.mosquitto.org:8080/mqtt mosca (ws)=ws://test.mosca.io/ hivemq (ws)=ws://broker.hivemq.com:8000 mosca-localhost (ws)=ws://localhost:3000 codimeo MQTT ={ ws=ws://mqtt.codimeo.com:15675/ws wss=wss://mqtt.codimeo.com:15676/ws }oneventmessagecallbacksubscribetopicunsubscribetopicpublishtopicmessageis_connectedlog_clientlog_parent_spriteendforceoneventsubscribeunsubscribepublishis_connectedlog_clientlog_parent_spriteendmessageand the main body of the class
mqtt-client
End MQTT Client with force True or False. Default : False
mqtt-client
messagetopicmqtt-client
mqtt clienttopic
mqtt-client
jsonreturn JSON.parse(json)"end":"" }
mqtt-clientevent#1#2#3
your comment line here
Hellorightcmd,publishretainfalseqos,0dupfalselength,12topic,Hellopayloadtype,Bufferdata114,105,103,104,116messageoneventsubscribeunsubscribepublishis_connectedlog_clientlog_parent_spriteendwss://mqtt.codimeo.com:15676/wsnullwss://mqtt.codimeo.com:15676/wsmessagecallbacktopictopictopicmessageforce0
\ No newline at end of file From 8e100d8f7a755c5cb58541f9221f5ced4f40bb55 Mon Sep 17 00:00:00 2001 From: Nizar AYED Date: Fri, 20 Mar 2020 20:52:38 +0100 Subject: [PATCH 5/8] Update LIBRARIES --- libraries/LIBRARIES | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/LIBRARIES b/libraries/LIBRARIES index 8eec88943c..b42236017f 100644 --- a/libraries/LIBRARIES +++ b/libraries/LIBRARIES @@ -24,3 +24,4 @@ make-variables.xml create variables in program declare global or sprite-local va json.xml Deal with JSON data Turn JSON strings into lists with the listify block, then retrieve data out of them by using the value at key block. parallel_module.xml Parallelization Run several scripts in parallel and wait until all are done. strings.xml String processing Extract substrings of a string in various ways +mqtt-blocks-v1.0.xml MQTT Library (OOP version) From 907b856d1e1b26e106a95b2b4e0f8ec7abdad849 Mon Sep 17 00:00:00 2001 From: Nizar AYED Date: Fri, 20 Mar 2020 20:53:07 +0100 Subject: [PATCH 6/8] Add files via upload --- libraries/mqtt-blocks-v1.0.xml | 1 + 1 file changed, 1 insertion(+) create mode 100644 libraries/mqtt-blocks-v1.0.xml diff --git a/libraries/mqtt-blocks-v1.0.xml b/libraries/mqtt-blocks-v1.0.xml new file mode 100644 index 0000000000..674d049b37 --- /dev/null +++ b/libraries/mqtt-blocks-v1.0.xml @@ -0,0 +1 @@ +
testtestvar mqttScript, done = false; mqttScript = document.createElement('script'), mqttScript.onload = function () { done = true; console.log('MQTT is ready'); }; document.head.appendChild(mqttScript); mqttScript.src = 'https://unpkg.com/mqtt/dist/mqtt.min.js'; return function () {return done; }
brokermoquitto (ws)=ws://test.mosquitto.org:8080/mqtt mosca (ws)=ws://test.mosca.io/ hivemq (ws)=ws://broker.hivemq.com:8000 mosca-localhost (ws)=ws://localhost:3000 codimeo MQTT ={ ws=ws://mqtt.codimeo.com:15675/ws wss=wss://mqtt.codimeo.com:15676/ws }oneventmessagecallbacksubscribetopicunsubscribetopicpublishtopicmessageis_connectedlog_clientlog_parent_spriteendforceoneventsubscribeunsubscribepublishis_connectedlog_clientlog_parent_spriteendmessageand the main body of the class
mqtt-client
End MQTT Client with force True or False. Default : False
mqtt-client
messagetopicmqtt-client
mqtt clienttopic
mqtt-client
jsonreturn JSON.parse(json)"end":"" }
mqtt-clientevent#1#2#3
your comment line here
\ No newline at end of file From ef9931cebfb91da4b0c629cb74f59838f3ec7eeb Mon Sep 17 00:00:00 2001 From: Nizar AYED Date: Thu, 23 Apr 2020 10:12:01 +0200 Subject: [PATCH 7/8] Enhanced MQTT elaborated demo project * Made more intuitive * corrected odd behavior (red shadow for non initialized client variable when project is loaded) * transferred the connection at the click event instead of at the start event *and use of .toString() method to capture the received message (otherwise, it is a ByteBuffer) --- Examples/mqtt-example2-v1.1.xml | 1 + 1 file changed, 1 insertion(+) create mode 100644 Examples/mqtt-example2-v1.1.xml diff --git a/Examples/mqtt-example2-v1.1.xml b/Examples/mqtt-example2-v1.1.xml new file mode 100644 index 0000000000..c41edeb5f3 --- /dev/null +++ b/Examples/mqtt-example2-v1.1.xml @@ -0,0 +1 @@ +data:image/png;base64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gQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQIHLFxAWmhEwHPAAAAAElFTkSuQmCCleftupdowngot message0Connect the client if disconnectedonHandle eventsconnectarg1arg2arg3When a message is receivedmessagetopicmessagepayloadWhen errorerrorerrorarg2arg3When reconnectreconnectarg1arg2arg3When offlineofflinearg1arg2arg3
GETGET POST PUT DELETEhttp://snap.berkeley.edu
Reports a three-item list containing the latitude and longitude of the user, and the precision of the measurements. Works only if the user allows snap.berkeley.edu access to location data. Some browsers also require an HTTPS connection to Snap!.
Store a value in TinyWebDB service. This is a demo service for Web Services used within Meo-Studio
Get a value from TinyWebDB service. This is a demo service for Web Services used within Meo-Studio
testtestvar mqttScript, done = false; mqttScript = document.createElement('script'), mqttScript.onload = function () { done = true; console.log('MQTT is ready'); }; document.head.appendChild(mqttScript); mqttScript.src = 'https://unpkg.com/mqtt/dist/mqtt.min.js'; return function () {return done; }
brokermoquitto (ws)=ws://test.mosquitto.org:8080/mqtt mosca (ws)=ws://test.mosca.io/ hivemq (ws)=ws://broker.hivemq.com:8000 mosca-localhost (ws)=ws://localhost:3000 codimeo MQTT ={ ws=ws://mqtt.codimeo.com:15675/ws wss=wss://mqtt.codimeo.com:15676/ws }oneventmessagecallbacksubscribetopicunsubscribetopicpublishtopicmessageis_connectedlog_clientlog_parent_spriteendforceoneventsubscribeunsubscribepublishis_connectedlog_clientlog_parent_spriteendmessageand the main body of the class
mqtt-client
End MQTT Client with force True or False. Default : False
mqtt-client
messagetopicmqtt-client
mqtt clienttopic
mqtt-client
jsonreturn JSON.parse(json)"end":"" }
mqtt-clientevent#1#2#3
your comment line here
Helloleftcmd,publishretainfalseqos,0dupfalselength,11topic,Hellopayloadtype,Bufferdata108,101,102,116messageoneventsubscribeunsubscribepublishis_connectedlog_clientlog_parent_spriteendwss://mqtt.codimeo.com:15676/wswss://mqtt.codimeo.com:15676/wsmessagecallbacktopictopictopicmessageforce0
\ No newline at end of file From 6313f73b80318fafe9aa0c01e1041fe4f0d54298 Mon Sep 17 00:00:00 2001 From: Nizar AYED Date: Thu, 23 Apr 2020 10:13:19 +0200 Subject: [PATCH 8/8] new version of elaborated MQTT demo project Take into account the new version of the elaborated MQTT demo project --- Examples/EXAMPLES | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Examples/EXAMPLES b/Examples/EXAMPLES index 7a8cb7c7dd..f87dcee891 100644 --- a/Examples/EXAMPLES +++ b/Examples/EXAMPLES @@ -9,4 +9,4 @@ swimmer.xml Swimmer tree.xml Tree vee.xml Vee mqtt-example1-v1.1.xml MQTT Simple Example -mqtt-example2-v1.0.xml MQTT Elaborated Example +mqtt-example2-v1.1.xml MQTT Elaborated Example