Thanks a lot. Will implement that. Although I am able to do using just 2
scripts as well.
On Monday, February 15, 2016 at 5:34:08 PM UTC+1, Peter Otten wrote:
> Arjun Srivatsa wrote:
>
> > Hi Peter.
> >
> > Thank you for the reply.
> >
> > This is the read
erted_id
>
>
> So, both these scripts work independently. While, read_server shows the
> output of the actual data from PLC, write_db inserts the sample data into the
> MongoDB.
>
> I am not sure as to how to combine these both and get the desired output.
>
>
>
>
bine these both and get the desired output.
On Monday, February 15, 2016 at 12:37:02 PM UTC+1, Peter Otten wrote:
> Arjun Srivatsa wrote:
>
> > I changed the port number from 27017 to 5 in the code segment:
>
> Instead of throwing arbitrary changes at your script in the hope
e error(EBADF, 'Bad file descriptor')
error: [Errno 9] Bad file descriptor
On Thursday, February 11, 2016 at 5:09:53 PM UTC+1, MRAB wrote:
> On 2016-02-11 15:12, Arjun Srivatsa wrote:
> > Hi guys. I am basically transferring the data from PLC to PC (where the
> > Python API
Hello,
I changed
PORT = 27017
to
PORT = 5.
I am not getting the error anymore. But I am still unable to insert the data
into MongoDB.
On Thursday, February 11, 2016 at 4:12:30 PM UTC+1, Arjun Srivatsa wrote:
> Hi guys. I am basically transferring the data from PLC to
Hi guys. I am basically transferring the data from PLC to PC (where the Python
API runs) but I'm unable to insert into MongoDB thereafter. When I run the
Python script on IDLE, the output is
Hello World!
Traceback (most recent call last): File "C:\Users\SRA2LO\Desktop\API.py", line
32, in s.bi