connectport X4H - send zigbee data to device cloud

Dear Sir/Madam,
I had tried using the “XBee to Device Cloud” python code from to forward my ZigBee API packets received at the connectport X4H Gateway to Device Cloud, but seem like it not working, is there any other problem if I use on X4H ZB Gateway? Or is there any other examples that I can tried? Thank a lot for your help.
Best regards,

I recommend installing the Digi ESP Development Environment software:

It provides several examples and an easy graphical development interface.