VAG Gateway Request for Data


I am working now on projects to reset service warning lights on VAG vehicles. I have now m2 and I can log with Savvycan CAN data with them. I use OEM Tester to get CAN data. Now my questions, can anyone help me to write a sketch to request the gateway or anyone have experienced on vag vehicles?