• Aucun résultat trouvé

2.2 Méthodes numériques

2.2.3 Méthodes des moments

2.2.3.3 Méthode de quadrature directe des moments

Em relação ao trabalho futuro, neste sistema, pretende-se realizar teste de usabilidade tanto à aplicação web como à aplicação mobile com o objetivo de verificar o grau de dificuldade da sua utilização para utilizadores comuns.

Um outro ponto importante, para trabalho futuro, é na definição do perfil ambiental de um tanque, para permitir definir para mais do que um parâmetro, a ação a executar no caso de o perfil não ser respeitado. Isto é, apenas quando os valores desses parâmetros não se encontram dentro dos valores predefinidos considerados seguros, a ação pretendida é executada. Um exemplo, é apenas ligar o atuador “aquecedor” quando o valor de temperatura e de oxigénio dissolvido se encontra abaixo de determinados valores.

Pretende-se, também, desenvolver três algoritmos, que se complementam. Um algoritmo, serve para prever alterações na qualidade da água que ocorreram como resultado de atividade humana, para fornecer avisos. Assim, é possível identificar tendências que resultam em mudanças na qualidade da água. Para além deste algoritmo preditivo, o desenvolvimento de um algoritmo para a deteção de eventos de contaminação durante o processo de monitorização, ajuda também, a criar alarmes para possibilitar intervenção imediata e assim, limitar a propagação da contaminação. Um outro algoritmo pode ser desenvolvido, para executar ações, sem intervenção humana, quando é detetado contaminação na água. Este algoritmo, necessita de possuir o histórico de ações humanas quando a qualidade da água está numa condição anormal, para executar a melhor ação possível de forma a melhorar as condições da água.

Por fim, novas experiências englobando as luzes LEDs UV podem ser feitas. Uma é testar cada LED isoladamente. Como, durante a experiência de viabilidade dos LEDs verificou-se que alguns estavam ligeiramente inclinados por estarem todos juntos podendo contribuir para o elevado número de desvio padrão, ao testar cada LED isoladamente, os mesmos não ficam inclinados incidindo na totalidade as bactérias. Assim, ao testar isoladamente, é possível obter melhores resultados, já que não há interferência de outros LEDs. Uma outra experiência é pulsar os LEDs usando a técnica PWM para verificar se com o pulsar dos LEDs se obtém melhor desempenho que o modo contínuo.

Referências

[1] L. Jesus, «Implementação da Norma NP EN ISO 22000 : 2005 em centros de depuração de bivalves : Estudo de caso», tese de mestrado, Universidade de Algarve, mar. de 2015, pp. 1–66. URL: https: //sapientia.ualg.pt/handle/10400.1/8101.

[2] J. Oliveira, A. Cunha, F. Castilho, J. L. Romalde e M. J. Pereira, «Microbial contamination and purifi- cation of bivalve shellfish: Crucial aspects in monitoring and future perspectives - A mini-review», Food

Control, vol. 22, n.º 6, pp. 805–816, jun. de 2011, issn: 09567135. URL: https://www.sciencedirect.

com/science/article/pii/S0956713510004135?via%3Dihub.

[3] M. Gdoura, H. Sellami, L. Khannous, N. Ketata, I. B. Neila, A. I. Traore, Z. Chekir e R. Gdoura, «Elimination of Escherichia coli and Salmonella in Clam by Using Zeolite in a Station of Depuration»,

Water Environment Research, vol. 89, n.º 9, pp. 856–861, set. de 2017, issn: 1061-4303. URL: https:

//onlinelibrary.wiley.com/doi/abs/10.2175/106143017X14902968254746.

[4] N. Vijayakumar e R. Ramya, «The real time monitoring of water quality in IoT environment», em

2015 International Conference on Circuits, Power and Computing Technologies [ICCPCT-2015], IEEE,

mar. de 2015, pp. 1–4, isbn: 9781479970759. URL: https://ieeexplore.ieee.org/document/7159459. [5] C. Encinas, E. Ruiz, J. Cortez e A. Espinoza, «Design and implementation of a distributed IoT system for

the monitoring of water quality in aquaculture», em 2017 Wireless Telecommunications Symposium, IEEE, abr. de 2017, pp. 1–7, isbn: 9781509035991. URL: http://ieeexplore.ieee.org/document/7943540/. [6] Techopedia Inc., What is Agile Software Development? - Definition from Techopedia, https://www.

techopedia.com/definition/13564/agile-software-development, Acedido em: 3/03/2019.

[7] O. Elgabry, Software Engineering — Software Process and Software Process Models (Part 2), https: / / medium . com / omarelgabrys - blog / software - engineering - software - process - and - software - process-models-part-2-4a9d06213fdc, Acedido em: 3/03/2019.

[8] World Health Organization, «Safe management of shellfish and harvest waters», WHO, pp. 145–181, 2010. URL: http://apps.who.int/iris/bitstream/handle/10665/44101/9789241563826_eng.pdf; jsessionid=8D60339D3A729E3EFBEE6D5827172984?sequence=1.

[9] D. I. Walker, A. Younger, L. Stockley e C. Baker-Austin, «Escherichia coli testing and enumeration in live bivalve shellfish – Present methods and future directions», Food Microbiology, vol. 73, pp. 29– 38, ago. de 2018, issn: 10959998. URL: https://www.sciencedirect.com/science/article/pii/ S0740002017302460?via%3Dihub.

[10] N. S. El-Shenawy, «Heavy-metal and microbial depuration of the clam Ruditapes decussatus and its effect on bivalve behavior and physiology», Environmental Toxicology, vol. 19, n.º 2, pp. 143–153, abr. de 2004, issn: 15204081. URL: http://doi.wiley.com/10.1002/tox.20007.

[11] A. G. Leal Diego, A. P. Dores Ramos, D. S. Marques Souza, M. Durigan, J. A. Greinert-Goulart, V. Moresco, R. C. Amstutz, A. H. Micoli, C. N. Romeu, C. R. M. Barardi e R. M. B. Franco, «Sanitary quality of edible bivalve mollusks in Southeastern Brazil using an UV based depuration system», Ocean and Coastal Management, vol. 72, pp. 93–100, fev. de 2013, issn: 09645691. URL: https://www.sciencedirect.com/science/article/pii/S0964569111001104?via%3Dihub.

[12] EU, Reg. (EC) No 854/2004 laying down specific rules for the organisation of official controls on products

of animal origin intended for human consumption, 2004. URL: https://eur-lex.europa.eu/eli/reg/

[13] H. Kasai, K. Kawana, M. Labaiden, K. Namba e M. Yoshimizu, «Elimination of Escherichia coli from oysters using electrolyzed seawater», Aquaculture, vol. 319, n.º 3-4, pp. 315–318, out. de 2011, issn: 16863933. URL: https://www.sciencedirect.com/science/article/pii/S0044848611005886?via% 3Dihub.

[14] E. Figueira e R. Freitas, «Consumption of Ruditapes philippinarum and Ruditapes decussatus: compari- son of element accumulation and health risk», Environmental Science and Pollution Research, vol. 20, n.º 8, pp. 5682–5691, ago. de 2013, issn: 0944-1344. URL: http://link.springer.com/10.1007/s11356- 013-1587-z.

[15] F. Bettencourt, C. Almeida, M. I. Santos, L. Pedroso e F. Soares, «Microbiological monitoring of Ruditapes decussatus from Ria Formosa Lagoon (South of Portugal)», Journal of Coastal Conservation, vol. 17, n.º 3, pp. 653–661, set. de 2013, issn: 1400-0350. doi: 10.1007/s11852-013-0264-1. URL: http://link.springer.com/10.1007/s11852-013-0264-1.

[16] A. De Abreu Corrêa, D. S. Souza, V. Moresco, C. R. Kleemann, L. A. Garcia e C. R. Barardi, «Stability of human enteric viruses in seawater samples from mollusc depuration tanks coupled with ultraviolet irradiation», Journal of Applied Microbiology, vol. 113, n.º 6, pp. 1554–1563, dez. de 2012, issn: 13645072. URL: http://doi.wiley.com/10.1111/jam.12010.

[17] A. de Abreu Corrêa, J. D. Albarnaz, V. Moresco, C. R. Poli, A. L. Teixeira, C. M. Oliveira Simões e C. R. Monte Barardi, «Depuration dynamics of oysters (Crassostrea gigas) artificially contaminated by Salmonella enterica serovar Typhimurium», Marine Environmental Research, vol. 63, n.º 5, pp. 479– 489, jun. de 2007, issn: 0141-1136. URL: https://www.sciencedirect.com/science/article/pii/ S0141113606002212?via%3Dihub.

[18] S. Shumway e G. Rodrick, Shellfish Safety and Quality. Cambridge: Woodhead Publishing Limited, 2009, pp. 515–518, isbn: 978-1-84569-152-3. URL: https://www.researchgate.net/publication/ 266632494_Shellfish_Safety_and_Quality.

[19] M. Maffei, P. Vernocchi, R. Lanciotti, M. E. Guerzoni, N. Belletti e F. Gardini, «Depuration of striped venus clam (Chamelea gallina L.): Effects on microorganisms, sand content, and mortality», Journal

of Food Science, vol. 74, n.º 1, pp. M1–M7, jan. de 2009, issn: 00221147. doi: 10.1111/j.1750-

3841.2008.00971.x. URL: http://doi.wiley.com/10.1111/j.1750-3841.2008.00971.x.

[20] D. C. Love, G. L. Lovelace e M. D. Sobsey, «Removal of Escherichia coli, Enterococcus fecalis, coliphage MS2, poliovirus, and hepatitis A virus from oysters (Crassostrea virginica) and hard shell clams (Mercinaria mercinaria) by depuration», International Journal of Food Microbiology, vol. 143, n.º 3, pp. 211–217, out. de 2010, issn: 01681605. doi: 10.1016/j.ijfoodmicro.2010.08.028. URL: https: //www.sciencedirect.com/science/article/pii/S0168160510005003?via%3Dihub.

[21] K. S. Adu-Manu, C. Tapparello, W. Heinzelman, F. A. Katsriku e J.-D. Abdulai, «Water Quality Monitoring Using Wireless Sensor Networks», ACM Transactions on Sensor Networks, vol. 13, n.º 1, pp. 1–41, fev. de 2017, issn: 15504859. doi: 10.1145/3005719. URL: http://dl.acm.org/citation. cfm?doid=3027492.3005719.

[22] C. Dupont, P. Cousin e S. Dupont, «IoT for Aquaculture 4.0. Smart and easy-to-deploy real-time water monitoring with IoT», 2018 Global Internet of Things Summit (GIoTS), pp. 1–5, jun. de 2018. doi: 10.1109/GIOTS.2018.8534581. URL: https://ieeexplore.ieee.org/document/8534581/.

[23] L. Parra, G. Lloret, J. Lloret e M. Rodilla, «Physical Sensors for Precision Aquaculture: A Review»,

IEEE Sensors Journal, vol. 18, n.º 10, pp. 3915–3923, mai. de 2018, issn: 1530437X. doi: 10.1109/JSEN.

2018.2817158. URL: https://ieeexplore.ieee.org/document/8319422/.

[24] S. Geetha e S. Gouthami, «Internet of things enabled real time water quality monitoring system»,

Smart Water, vol. 2, n.º 1, pp. 1–19, dez. de 2016, issn: 2198-2619. URL: https://link.springer.com/

article/10.1186/s40713-017-0005-y.

[25] M. Pule, A. Yahya e J. Chuma, «Wireless sensor networks: A survey on monitoring water quality»,

Journal of Applied Research and Technology, vol. 15, n.º 6, pp. 562–570, dez. de 2017, issn: 16656423.

doi: 10 . 1016 / j . jart . 2017 . 07 . 004. URL: http : / / linkinghub . elsevier . com / retrieve / pii / S1665642317301037.

[26] K. R. S. R. Raju e G. H. K. Varma, «Knowledge based real time monitoring system for aquaculture Using IoT», em Proceedings - 7th IEEE International Advanced Computing Conference, IACC 2017,

IEEE, jan. de 2017, pp. 318–321, isbn: 9781509015603. doi: 10.1109/IACC.2017.0075. URL: http: //ieeexplore.ieee.org/document/7976809/.

[27] G. Wiranto, Y. Y. Maulana, I. D. P. Hermida, I. Syamsu e D. Mahmudin, «Integrated online water quality monitoring», em 2015 International Conference on Smart Sensors and Application, ICSSA 2015, IEEE, mai. de 2015, pp. 111–115, isbn: 9781479973644. doi: 10.1109/ICSSA.2015.7322521. URL: http://ieeexplore.ieee.org/document/7322521/.

[28] J. Dong, G. Wang, H. Yan, J. Xu e X. Zhang, «A survey of smart water quality monitoring system»,

Environmental Science and Pollution Research, vol. 22, n.º 7, pp. 4893–4906, abr. de 2015, issn: 16147499.

doi: 10.1007/s11356-014-4026-x. URL: http://link.springer.com/10.1007/s11356-014-4026-x. [29] M. Michalík, «Base station for wireless sensor network», tese de mestrado, Universidade Masaryk,

jun. de 2013, pp. 1–64. URL: https://is.muni.cz/th/ra5v9/dp.pdf.

[30] G. Xu, W. Shen e X. Wang, «Applications of Wireless Sensor Networks in Marine Environment Monitoring: A Survey», Sensors, vol. 14, n.º 9, pp. 16 932–16 954, set. de 2014, issn: 1424-8220. doi: 10.3390/s140916932. URL: http://www.mdpi.com/1424-8220/14/9/16932.

[31] M. Dzulqornain, M. Harun Al Rasyid e S. Sukaridhoto, «Design and Development of Smart Aquaculture System Based on IFTTT Model and Cloud Integration», MATEC Web of Conferences, vol. 16, n.º 4, pp. 1– 11, abr. de 2018, issn: 2261236X. doi: 10.1051/matecconf/201816401030. URL: https://www.matec- conferences.org/10.1051/matecconf/201816401030.

[32] P. S. Sneha e V. S. Rakesh, «Automatic monitoring and control of shrimp aquaculture and paddy field based on embedded system and IoT», em Proceedings of the International Conference on Inventive

Computing and Informatics, IEEE, nov. de 2017, pp. 1085–1089, isbn: 9781538640319. URL: https:

//ieeexplore.ieee.org/document/8365307/.

[33] B. Siregar, K. Menen, S. Efendi, U. Andayani e F. Fahmi, «Monitoring quality standard of waste water using wireless sensor network technology for smart environment», em 2017 International Conference

on ICT for Smart Society, vol. 2018-Janua, IEEE, set. de 2017, pp. 1–6, isbn: 9781538623305. URL:

http://ieeexplore.ieee.org/document/8288865/.

[34] K. Gopavanitha e S. Nagaraju, «A low cost system for real time water quality monitoring and controlling using IoT», em International Conference on Energy, Communication, Data Analytics and Soft Computing, IEEE, ago. de 2017, pp. 3227–3229, isbn: 9781538618875. URL: https://ieeexplore.ieee.org/ document/8390054/.

[35] S. H. Ariffin, M. A. Baharuddin, M. H. M. Fauzi, N. M. Latiff, S. K. Yusof e N. A. Latiff, «Wireless water quality cloud monitoring system with self-healing algorithm», em 2017 IEEE 13th Malaysia International

Conference on Communications, MICC 2017, IEEE, nov. de 2017, pp. 218–223, isbn: 9781538631324.

doi: 10.1109/MICC.2017.8311762. URL: http://ieeexplore.ieee.org/document/8311762/. [36] B. Das e P. C. Jain, «Real-time water quality monitoring system using Internet of Things», em

2017 International Conference on Computer, Communications and Electronics, COMPTELIX 2017,

IEEE, jul. de 2017, pp. 78–82, isbn: 9781509047086. doi: 10.1109/COMPTELIX.2017.8003942. URL: http://ieeexplore.ieee.org/document/8003942/.

[37] J. Gubbi, R. Buyya, S. Marusic e M. Palaniswami, «Internet of Things (IoT): A vision, architectural elements, and future directions», Future Generation Computer Systems, vol. 29, n.º 7, pp. 1645–1660, set. de 2013, issn: 0167739X. doi: 10.1016/j.future.2013.01.010. URL: https://www.sciencedirect. com/science/article/pii/S0167739X13000241.

[38] A. B. A. Rahman, Comparison of Internet of Things ( IoT ) Data Link Protocols, 2015. URL: https: //www.semanticscholar.org/paper/Comparison- of- Internet- of- Things- (- IoT- )- Data- Link- Rahman/1cf94e2ebb27aaecdae3742e444ca9e87314216b.

[39] A. Al-Fuqaha, M. Guizani, M. Mohammadi, M. Aledhari e M. Ayyash, «Internet of Things: A Survey on Enabling Technologies, Protocols, and Applications», IEEE Communications Surveys & Tutorials, vol. 17, n.º 4, pp. 2347–2376, 2015, issn: 1553-877X. doi: 10 . 1109 / COMST . 2015 . 2444095. URL: https://ieeexplore.ieee.org/document/7123563/.

[40] P. Ram, LPWAN, LoRa, LoRaWAN and the Internet of Things, https://medium.com/coinmonks/lpwan- lora-lorawan-and-the-internet-of-things-aed7d5975d5d, Acedido em: 28/03/2019.

[41] B. Ray, What Is LoRaWAN? [Technical Breakdown], https://www.link-labs.com/blog/what-is- lorawan, Acedido em: 28/03/2019.

[42] Sigfox, Sigfox Technology Overview, https://www.sigfox.com/en/sigfox-iot-technology-overview, Acedido em: 28/03/2019.

[43] OASIS, AMQP is the Internet Protocol for Business Messaging | AMQP, https://www.amqp.org/ about/what, Acedido em: 29/03/2019.

[44] The HiveMQ Team, MQTT Essentials Part 6: Quality of Service 0, 1 & 2, https://www.hivemq.com/ blog/mqtt-essentials-part-6-mqtt-quality-of-service-levels/, Acedido em: 29/03/2019. [45] Y. Justin Dhas e P. Jeyanthi, «A review on internet of things protocol and service oriented middleware»,

em Proceedings of the 2019 IEEE International Conference on Communication and Signal Processing,

ICCSP 2019, IEEE, abr. de 2019, pp. 104–108, isbn: 9781538675953. doi: 10.1109/ICCSP.2019.8698088.

URL: https://ieeexplore.ieee.org/document/8698088/.

[46] A. Brocker, S. Voelker, T. Z. Zhang, M. Müller e J. Borchers, «Flowboard: A Visual Flow-Based Programming Environment for Embedded Coding», Extended Abstracts of the 2019 CHI Conference on

Human Factors in Computing Systems - CHI EA ’19, pp. 1–4, mai. de 2019. doi: 10.1145/3290607.

3313247. URL: http://dl.acm.org/citation.cfm?doid=3290607.3313247.

[47] Z. Li, Y. Xiao, S. Liang e S. Wang, «Design of Smart Home Management System based on MQTT and FBP», em Proceedings 2018 Chinese Automation Congress, CAC 2018, IEEE, nov. de 2018, pp. 3086– 3091, isbn: 9781728113128. doi: 10.1109/CAC.2018.8623113. URL: https://ieeexplore.ieee.org/ document/8623113/.

[48] OpenJS Foundation, Node-RED, https://nodered.org/, Acedido em: 30/03/2019.

[49] Total Avengers, Total.js Flow - Total.js, https://www.totaljs.com/flow/, Acedido em: 30/03/2019. [50] Arduino, Arduino, https://www.arduino.cc/, Acedido em: 31/03/2019.

[51] Raspberry Pi Foundation, Raspberry Pi, https://www.raspberrypi.org/, Acedido em: 31/03/2019. [52] Libelium, Waspmote Technical Guide, 2018. URL: http : / / www . libelium . com / downloads /

documentation/waspmote_technical_guide.pdf.

[53] MongoDB Inc., MongoDB, https://www.mongodb.com/, Acedido em: 1/04/2019.

[54] Oracle, MySQL | The Most Popular Open-Source Database | Oracle, https://www.oracle.com/mysql/, Acedido em: 1/04/2019.

[55] PostgreSQL Global Development Group, PostgreSQL: About, https://www.postgresql.org/about/, Acedido em: 1/04/2019.

[56] R. Deari, X. Zenuni, J. Ajdari, F. Ismaili e B. Raufi, «Analysis and comparision of document-based databases with relational databases: MongoDB vs MySQL», em 2018 International Conference on

Information Technologies, InfoTech 2018 - Proceedings, IEEE, set. de 2018, pp. 1–4, isbn: 9781538695210.

doi: 10.1109/InfoTech.2018.8510719. URL: https://ieeexplore.ieee.org/document/8510719/. [57] M. G. Jung, S. A. Youn, J. Bae e Y. L. Choi, «A study on data input and output performance comparison

of MongoDB and PostgreSQL in the big data environment», em Proceedings - 8th International

Conference on Database Theory and Application, DTA 2015, IEEE, nov. de 2015, pp. 14–17, isbn:

9781467398497. doi: 10.1109/DTA.2015.14. URL: http://ieeexplore.ieee.org/document/7433710/. [58] R. Poljak, P. Poscic e D. Jaksic, «Comparative analysis of the selected relational database management

systems», em 2017 40th International Convention on Information and Communication Technology,

Electronics and Microelectronics, MIPRO 2017 - Proceedings, IEEE, mai. de 2017, pp. 1496–1500, isbn:

9789532330922. doi: 10.23919/MIPRO.2017.7973658. URL: http://ieeexplore.ieee.org/document/ 7973658/.

[59] Microsoft, ASP.NET | Open-source web framework for .NET, https://dotnet.microsoft.com/apps/ aspnet, Acedido em: 2/04/2019.

[60] Django Software Foundation, The Web framework for perfectionists with deadlines | Django, https: //www.djangoproject.com/, Acedido em: 2/04/2019.

[61] Node.js Foundation, Express - Node.js web application framework, https://expressjs.com/, Acedido em: 2/04/2019.

[62] ——, About | Node.js, https://nodejs.org/en/about/, Acedido em: 2/04/2019.

[63] A. Ronacher, Welcome | Flask (A Python Microframework), http://flask.pocoo.org/, Acedido em: 2/04/2019.

[64] C. M. Pinto e C. Coutinho, «From Native to Cross-platform Hybrid Development», em 2018 International

Conference on Intelligent Systems (IS), IEEE, set. de 2018, pp. 669–676, isbn: 978-1-5386-7097-2. doi:

10.1109/is.2018.8710545. URL: https://ieeexplore.ieee.org/document/8710545/.

[65] Ionic, Ionic - Cross-Platform Mobile App Development, https://ionicframework.com/, Acedido em: 3/04/2019.

[66] Adobe Systems Inc., PhoneGap, https://phonegap.com/, Acedido em: 3/04/2019.

[67] M. A. Razzaque, M. Milojevic-Jevric, A. Palade e S. Cla, «Middleware for internet of things: A survey», IEEE Internet of Things Journal, vol. 3, n.º 1, pp. 70–95, fev. de 2016, issn: 23274662. doi: 10.1109/JIOT.2015.2498900. URL: http://ieeexplore.ieee.org/document/7322178/.

[68] Libelium, Smart Water - Technical Guide, 2018. URL: http : / / www . libelium . com / downloads / documentation/smart_water_sensor_board.pdf.

[69] Blue Spire, Home | Durandal, http://durandaljs.com/, Acedido em: 3/04/2019. [70] The jQuery Foundation, jQuery, https://jquery.com/, Acedido em: 3/04/2019.

[71] Bootstrap team, Bootstrap · The most popular HTML, CSS, and JS library in the world. https: //getbootstrap.com/, Acedido em: 3/04/2019.

[72] S. Sanderson, Knockout : Home, https://knockoutjs.com/, Acedido em: 3/04/2019. [73] A. Chung, RequireJS, https://requirejs.org/, Acedido em: 3/04/2019.

[74] ZingChart Inc., JavaScript Charts in one powerful declarative library | ZingChart, https : / / www . zingchart.com/, Acedido em: 3/04/2019.

[75] D. Grossman, Date Range Picker — JavaScript Date & Time Picker Library, http : / / www . daterangepicker.com/, Acedido em: 3/04/2019.

[76] appendTo LLC, Store | API | AmplifyJS - A Component Library for jQuery, http://amplifyjs.com/ api/store/, Acedido em: 3/04/2019.

[77] D. Eden, Animate.css, https://daneden.github.io/animate.css/, Acedido em: 3/04/2019. [78] Fonticons Inc., Font Awesome, https://fontawesome.com/, Acedido em: 3/04/2019.

[79] Themify.me, Themify Icons - 320+ Free Icons For Web Design & Apps, https://themify.me/themify- icons, Acedido em: 3/04/2019.

[80] Materialize, Toasts - Materialize, https://materializecss.com/toasts.html, Acedido em: 3/04/2019. [81] Socket.IO, Socket.IO, https://socket.io/, Acedido em: 3/04/2019.

[82] Brix, brix/crypto-js: JavaScript library of crypto standards. https://github.com/brix/crypto-js, Acedido em: 3/04/2019.

[83] SpryMedia Ltd., DataTables | Table plug-in for jQuery, https://datatables.net/, Acedido em: 3/04/2019.

[84] SmartBear Software, The Best APIs are Built with Swagger Tools | Swagger, https://swagger.io/, Acedido em: 27/08/2019.

APÊNDICE

A

Tópicos MQTT

Este apêndice apresenta e descreve cada um dos tópicos utilizados para as comunicações MQTT entre as várias entidades desenvolvidas, para o correto funcionamento do sistema.

A.1 Broker MQTT no Raspberry Pi

Esta secção, apresenta e descreve os tópicos utilizados no broker MQTT localizado no

Raspberry Pi.

• nodeMCU/<actuatorType> – Publisher - Raspberry Pi – Subscriber - NodeMCU

– Descrição - define um novo estado para o atuador <actuatorType> instalado no tanque.

• nodeMCU/waterIntensity – Publisher - Raspberry Pi – Subscriber - NodeMCU

– Descrição - define a intensidade do fluxo da água no momento da execução do perfil de depuração.

• nodeMCU/lightIntensity – Publisher - Raspberry Pi – Subscriber - NodeMCU

– Descrição - define a intensidade das luzes LED UV no momento da execução do perfil de depuração.

• nodeMCU/time

– Publisher - Raspberry Pi – Subscriber - NodeMCU

• nodeMCU/tankID

– Publisher - Raspberry Pi – Subscriber - NodeMCU

– Descrição - ID do tanque para depois enviar as leituras do sensor do fluxo de água.

• <tankID>/sensorValues/<sensorType> – Publisher - NodeMCU e Raspberry Pi – Subscriber - Raspberry Pi

– Descrição - valores lidos pelo sensor <sensorType> instalado no tanque <tan- kID>.