Sending downlink messages from Multitech Gateway to a mDot device

HI,

I am new to lora. I tried sending data from node device to Gateway, I also tried sending data from gateway with the help of NODE-RED. Now i am looking do it through a program, whether there is an example which can help me out?

Thanks