Research Article
IoT-Based Smart Management of Healthcare Services in Hospital Buildings during COVID-19 and Future Pandemics
Algorithm 1
It shows the main process.
| /subscribe to MQTT broker / | | mqtt_subscribe(&client, topic, 0); | | / start publishing the time / | | printf(“%s listening for ‘%s’ messages.\n”, argv[0], topic); | | printf(“Press CTRL-D to exit.\n\n”); | | / block / | | while(fgetc(stdin) != EOF); | | / disconnect / | | printf(“\n%s disconnecting from %s\n”, argv[0], addr); | | sleep(1); | | / exit / | | exit_example(EXIT_SUCCESS, sockfd, &client_daemon); |
|