I've found a few resources on this topic, but I've yet to find a solid solution.
I was able to get into AP mode using this tutorial; however, I was never able to get the supplied IP addresses to work properly. My connected devices were all getting 169.*.*.* addresses. I suspect the problem came from improper traffic forwarding/iptable rules because I recognize this address as a link local.
I also struggled a bit getting it back to client mode. I was able to do so, however the link local address problem still persists and the client I'm trying to connect to denies me.
After I get that all sorted it would be ideal if I could flip between these modes with a script similar to this answer .
For what it's worth once I get the scripting taken care of I will be using Node to handle the switching.
I appreciate the help guys. Thanks in advance.