I am trying to publish a message from a IoT Core which is a Raspberry Pi 4.
import time from AWSIoTPythonSDK.MQTTLib import AWSIoTMQTTClient def hello(self,p