Expected initializer before '.' token error is coming for this code plz tell me what to do? (for my ESP8266)

@yjhdhmkij, your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with your project :wink: See About the Installation & Troubleshooting category.

Can you please provide the full error message; there should be a button "Copy error messages" in the orange bar when compilation fails. Click it and next paste here in a reply.