I have a Python script for collecting XBee sensor data and appending a comma delimited text file. Right now I only am able to append a text file that resides within the XBee gateway memory. I’d like to be able to append a text file on our All_User network for general access by anyone.
I’m using Digi ESP to write code. The simplest thing I have tried is:
with open(“//ourServerName/ourDataFolder/ourData.csv”, “a”) as ourFile:
All this yields is a file on the XBee gateway named “//ourServerName/ourDataFolder/ourData.csv”
I’ve looked up Python IO commands online and have tried tried different things with os.path.xxxx and either receive an IOError errno 2, no such file or directory, or get an odd named file on the XBee gateway.
Any suggestions would be apreeciated.