Anyone experience this?

36 weeks pregnant, Friday I went to the ER because I had some bleeding. Soon after arriving I started getting contractions every 2-3 minutes doctor said it was too early so they prescribed medication and was sent home. Since Friday I have been getting this brown discharge/blood? Should I be expecting labor soon? I am scheduled for a C-section on the first week of august