Hello David,
welcome to this moderated Azure community forum.
You try to send a message to the Azure IoT Hub over MQTT and you use topic '/SpaceLynk'.
Although the Azure IoT Hub offers MQTT support for receiving messages and sending commands, it does not offer full MQTT support.
It is not a plain MQTT broker. The IoT Hub only supports a limited amount of specific topic, honnoring the interface of the device twin (eg. receiving messages, desired/reported properties, cloud messages, direct method).
So, the topic '/SpaceLynk' will nog be accepted.
Check out this blog post regarding the specific device twin related topics.
Although I have no experience with LUA, it should be possible to connect the IoT Hub if the right guidelines are followed.
If you want to send messages using the full MQTT protocol, check out the Event Grid namespace MQTT support.
Security is enforced by certificates and you can event prevent spoofing using the various wildcards.
If you want to test it, read this blog post about this MQTT broker with several examples.
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.