Can I hardcode AT commands into a sketch?

I'm using different libraries to perform different functions, like sendsms and shutdown. However, there's a whole host of different types of commands that my sim900 can do - outside of these libraries.

I also assume the functions written in these libraries utilize some of these at commands, but that might be an incorrect assumption...

My Question: Can I hardcode AT commands in the sketch (without inputing into serial) for commands I can't get from libraries?

For example, there are several types of sleep modes, one which is a low power sleep mode. I want to get into this state by hardcoding the AT command after I send an SMS.

Thanks for your help :slight_smile:

GSM.println("AT+...."); works for me