I was trying to take images using raspberry pi camera. I have send a get request from a main controller pi to a pi which holds the camera module. This is the code inside pi