Submitted:
27 May 2025
Posted:
28 May 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
1.1. Related Work
2. Materials and Methods
- Share;
- Service;
- Feature.


- the unique identifier of the Service (i.e. its MIB);
- a LUA function, i.e the Service function implementation of the client stub;
-
a LUA function that implements the daemon which declares different parts:
- a feature with RExp 2.5.8.4.*;
- a post condition that specifies the comparison of the temperature and the threshold with precision;
- the reception of the parameters and the call of the temp_check function.
- the pre condition of the temperature_alert service, specifying that the temperature must be within the range of -50 to 150, inclusive.
- the unique identifier of the Service (i.e. its MIB);
- a LUA function, i.e., the Service function implementation of the client stub, to enable a connection to the service;
- a LUA function which implements the daemon. Here, it is possible to observe the validation of the comparison from temperature and threshold.
- the pre condition of the temperature_check service, specifying that the temperature must be in the range -50 to 150 with edges included.


2.1. Sequence Diagram
2.2. Simulator Implementation

2.3. Structure and Functionalities







2.4. Formal Specification with OCL


3. Results
4. Discussion
5. Future Work
- verify the workload of the individual nodes and the entire system
- determines the functioning of the system in the presence of failures or the unavailability of devices
- helps in the design of fault tolerance systems with safeguard causes
Author Contributions
Funding
Institutional Review Board Statement
Acknowledgments
Conflicts of Interest
References
- Culmone, R.; Cacciagrano, D.; Al-Turjman, F.; Mostarda, L. Share: A Design Pattern for Dynamic Composition of IoT Services. In Forthcoming Networks and Sustainability in the IoT Era ; Ever, E.; Al-Turjman, F., Eds.; Springer International Publishing: Cham, 2021; pp 144–156. [CrossRef]
- Luigi Atzori and Antonio Iera and Giacomo Morabito. The Internet of Things: A survey. Computer Networks 2020 54: 2787 - 2805.
- Ullah Z., Al-Turjman F., Mostarda L., Gagliardi R. Applications of Artificial Intelligence and Machine learning in smart cities. Computer Communications 2020 154: 313-323.
- Al-Turjman F., Zahmatkesh H., Mostarda L. Quantifying uncertainty in internet of medical things and big-data services using intelligence and deep learning. IEEE Access 2019 7: 115749-115759.
- W. Shi and J. Cao and Q. Zhang and Y. Li and L. Xu. Edge Computing: Vision and Challenges. IEEE Internet of Things Journal 2016 3: 637-646.
- Washizaki, H.; Ogata, S.; Hazeyama, A.; Okubo, T.; Fernandez, E. B.; Yoshioka, N. Landscape of Architecture and Design Patterns for IoT Systems. IEEE Internet Things J. 2020, 7 (10): 10091–10101. [CrossRef]
- Baldoni, R.; Di Ciccio, C.; Mecella, M.; Patrizi, F.; Querzoni, L.; Santucci, G.; Dustdar, S.; Li, F.; Truong, H.-L.; Albornos, L.; Milagro, F.; Antolin Rafael, P.; Ayani, R.; Rasch, K.; Garcia Lozano, M.; Aiello, M.; Lazovik, A.; Denaro, A.; Lasala, G.; Pucci, P.; Holzner, C.; Cincotti, F.; Aloise, F. An Embedded Middleware Platform for Pervasive and Immersive Environments for-All. In EPRINTS-BOOK-TITLE; University of Groningen, Johann Bernoulli Institute for Mathematics and Computer Science, 2009; ISBN 9781424439386.
- Meyer, B. Object-Oriented Software Construction, 2nd ed.; Prentice-Hall, Inc.: Upper Saddle River, NJ, USA, 1997; ISBN 0-13-629155-4.
- Tavares, A. L. C.; Valente, M. T. A Gentle Introduction to OSGi. ACM SIGSOFT Software Engineering Notes 2008, 33 (5): 1–5. [CrossRef]
- Baruch Givoni. Climate considerations in building and urban design. Van Nostrand Reinhold, 1998.
- Ierusalimschy, R., Figueiredo, L. H., & Celes, W. (2005). The implementation of Lua 5.0. Software: Practice and Experience, 35(6), 581–603. [CrossRef]
- Warmer, J.; Kleppe, A. The Object Constraint Language: Precise Modeling with UML; Addison-Wesley: Boston, 1999.
- Internet of Things forecast. Available online: https://www.ericsson.com/en/mobility-report/internet-of-things-forecast.
- Embedded Lua on microcontroller. Porting Lua interpreter on microcontrollers. Available online: https://github.com/elua/elua?tab=readme-ov-file.
- Booth, D.; Liu, C. K. Web Services Description Language (WSDL) Version 2.0 Part 0: Primer. 2007. Available online:http://www.w3.org/TR/wsdl20-primer (accessed on June 26, 2007).
- Chinnici, R.; Moreau, J.-J.; Ryman, A.; Weerawarana, S. Web Services Description Language (WSDL) Version 2.0 Part 1: Core Language. 2007. Available online: http://www.w3.org/TR/wsdl20 (accessed on 26 June 26 2007).
- Chinnici, R.; Haas, H.; Lewis, A. A.; Moreau, J.-J.; Orchard, D.; Weerawarana, S. Web Services Description Language (WSDL) Version 2.0 Part 2: Adjuncts. 2007. Available online: http://www.w3.org/TR/wsdl20-adjuncts (accessed on 26 June 2007).
- Whitecat ESP32 N1 Board. 2019. Available online: https://whitecatboard.org/lorawan-deployment-in-cornella/ (accessed on November 2019).
- Programming in Lua. Roberto Ierusalimschy. 2003. Available online: https://www.lua.org/pil/contents.html.
- Structure of management information (smi) numbers (mib module regis- trations), 2020, https://www.iana.org/.
- European Union. Regulation (EU) 2017/1369 of the European Parliament and of the Council of 4 July 2017 setting a framework for energy labelling and repealing Directive 2010/30/EU. 2017. https://eur- lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32017R1369.
- European Union. Consolidated text: Regulation (EU) 2017/1369 of the European Parliament and of the Council of 4 July 2017 setting a framework for energy labelling and repealing Directive 2010/30/EU. 2021. https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX%3A02017R1369-20210501.
- Object Management Group. Object Constraint Language (OCL), Version 2.3.1; OMG Document formal/2012-01-01; 2012. Available online: https://www.omg.org/spec/OCL/2.3.1/ (accessed [30/04/2025]).
- OpenWrt. OpenWrt. Available online: https://openwrt.org/.
- Flavio Bonomi, Rodolfo Milito, Jiang Zhu, and Sateesh Addepalli. 2012. Fog computing and its role in the internet of things. In Proceedings of the first edition of the MCC workshop on Mobile cloud computing (MCC ’12). Association for Computing Machinery, New York, NY, USA, 13–16. [CrossRef]
- Pourreza, H.; Graham, P. On the Fly Service Composition for Local Interaction Environments. In Proceedings of the Fourth Annual IEEE International Conference on Pervasive Computing and Communications Workshops (PERCOMW’06) ; IEEE, 2006; pp. 6–399. [CrossRef]
- Zhao, Q.; Huang, G.; Huang, J.; Liu, X.; Mei, H. A Web-Based Mashup Environment for On-the-Fly Service Composition. In Proceedings of the 2008 IEEE International Symposium on Service-Oriented System Engineering ; IEEE, 2008; pp. 32–37. [CrossRef]
- Marchetti, E.; Bartolini, C.; Bertolino, A.; Polini, A. WS-TAXI: A WSDL-Based Testing Tool for Web Services. In Proceedings of the 2009 International Conference on Software Testing Verification and Validation (ICST) ; IEEE, 2009; pp. 326–335. [CrossRef]
- Cacciagrano, D.; Corradini, F.; Culmone, R.; Vito, L. Dynamic Constraint-Based Invocation of Web Services. In Web Services and Formal Methods, Third International Workshop, WS-FM 2006, Vienna, Austria, September 8-9, 2006, Proceedings ; Springer, 2006; pp. 138–147. [CrossRef]
- Cacciagrano, D.; Corradini, F.; Culmone, R.; Tesei, L.; Vito, L. A Model-Prover for Constrained Dynamic Conversations. In iiWAS’2008 - The Tenth International Conference on Information Integration and Web-Based Applications Services, 24-26 November 2008, Linz, Austria ; ACM, 2008; pp. 630–633. [CrossRef]
- Cacciagrano, D.; Corradini, F.; Culmone, R.; Vito, L. Constraint-Based Dynamic Conversations. In The Fifth International Conference on Networking and Services (ICNS 2009), 20-25 April 2009, Valencia, Spain ; IEEE, 2009; pp. 7–12. [CrossRef]
- Barnett, M.; Leino, R. Weakest-Precondition of Unstructured Programs. In Proceedings of the 6th ACM SIGPLAN-SIGSOFT Workshop on Program Analysis for Software Tools and Engineering (PASTE ’05) ; ACM Press: New York, NY, USA, 2005; pp. 82–87. ISBN 1-59593-239-9.
- de Moura, L.; Bjørner, N. Z3: An Efficient SMT Solver. In Tools and Algorithms for the Construction and Analysis of Systems ; Ramakrishnan, C. R., Rehof, J., Eds.; Springer: Berlin, Heidelberg, 2008; pp. 337–340. ISBN 978-3-540-78800-3.
- Konrad, S.; Cheng, B. Requirements Patterns for Embedded Systems. Proceedings of the IEEE International Conference on Requirements Engineering, 2002, 127–136. [CrossRef]
- Sveda, M. Patterns for Embedded Systems Design. In Proceedings of the International Conference on Embedded Systems Design ; Springer: Berlin, Heidelberg, 2007; pp. 80–89. [CrossRef]


Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).