device code for Pi app template