I can't prove but now strongly suspect that the "coup" was some sort of false flag/provocation. There were real plotters, but they were provoked or shaped by Erdogan forces. The coup leaders acted either totally prematurely (perhaps to pre-empt what Erdogan was up to) or with false confidence about who was on their side. Erdogan knew what they were doing and perhaps even shaped it.
Appears that Erdogan is in control and purging the hell out of both the military and the judiciary. Rumors that Erdogan may have guided or provoked a hopeless "coup" to provide a pretext for the massive pro-Islamist purge he was ready to do. THOUSANDS in the judiciary and the military have been rounded up... how many will be executed? How many will rot in horrible Turkish prisons for years or decades?
Reportedly at least 6,000 rounded up now by Erdogan, 2700+ in judiciary and thousands more in military.
Modern day Reichstag Fire turns into Night of Long Knives?
REICHSTAG FIRE (1933):
NIGHT OF THE LONG KNIVES (1934):
I’m about 99.9% sure it was Erdog’s doing. Some senior officers drummed up support under his orders, and thus flushed out Erdog’s enemies. Note my comment above about johnny on the spot Erdog thugs, and the pre-made red Turkish flags, pre-made lists of enemies, instant decrees, etc.