Pyfirmata problems when analog.read from two arduino's

Hey guys,

for my project I need to read multiple analog pins on two Arduino Mega's. Other tasks like PWM are working perfectly well but when reading analog Pins I can only read values from one of the boards the others show None. Have you heard about the problem and know how to fix it?

I've read about using multiprocessing but it'll be a little bit complicated with the communiciation between tkinter and the other while loops.

Here is an example code:

from pyfirmata.util import Iterator
import time
import threading
from pyfirmata import ArduinoMega


def read_1():
    board1 = ArduinoMega("COM9")
    iterator = Iterator(board1)
    iterator.start()
    analog_0_board1 = board1.get_pin("a:0:i")
    while True:
        time.sleep(0.5)
        a = analog_0_board1.read()
        print("A0 Board 1: " + str(a))


def read_2():
    board2 = ArduinoMega("COM4")
    iterator = Iterator(board2)
    iterator.start()
    analog_0_board2 = board2.get_pin("a:0:i")
    while True:
        time.sleep(0.5)
        b = analog_0_board2.read()
        print("A0 Board 2: " + str(b))


x = threading.Thread(target=read_1)
x.start()

y = threading.Thread(target=read_2)
y.start()