Gateway Code for Smart OES projects