# String(int) causing SOS safe mode

**URL:** <https://community.particle.io/t/string-int-causing-sos-safe-mode/51857>\
**Category:** Troubleshooting\
**Tags:** electron\
**Created:** [August 25, 2019, 8:10pm UTC](https://community.particle.io/t/string-int-causing-sos-safe-mode/51857 "2019-08-25T20:10:47Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![MikeP171](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@MikeP171](https://community.particle.io/u/MikeP171)\
**Post date:** [August 29, 2019, 1:12am UTC](https://community.particle.io/t/string-int-causing-sos-safe-mode/51857/6 "2019-08-29T01:12:50Z")

</div>

> [@nrobinson2000](#):
>
> Could you possibly elaborate on your hardware setup?

My hardware setup is in this post, with picture from June 8.

> [@Casting Variables for I2C](https://community.particle.io/t/casting-variables-for-i2c/48813/35):
>
> Hi Guys, I was able to get my project to work finally, albeit the inverse setup I originally intended, with the Arduino as the master. This current setup is with the Electron as the Master. Here is my setup with code and output to follow. Arduino slave: #include \<Wire.h\> void setup() { Wire.begin(); Serial.begin(9600); Serial.print("setup has completed.");//mp } void loop() { Wire.beginTransmission(1); Wire.write(234); //modify this! //numerical 256 is the limit on this -…

> [@ScruffR](#):
>
> I’d rather put the `Serial.print()` statement out of the `onReceive()` callback, just as I wouldn’t put a `Serial.print()` statement into an interrupt handler.

Are you saying move the Serial.print into the setup right after onReceive()? Not quite sure what you are suggesting....

---

_[View the full topic](https://community.particle.io/t/string-int-causing-sos-safe-mode/51857)._
